if( WikiError::isError( $result ) ) {
wfDie( $result->getMessage() );
}
+
+ if( $this->spawnProc ) {
+ $this->closeSpawn();
+ }
$this->report( true );
}
}
private function closeSpawn() {
+ wfSuppressWarnings();
if( $this->spawnRead )
fclose( $this->spawnRead );
$this->spawnRead = false;
if( $this->spawnProc )
pclose( $this->spawnProc );
$this->spawnProc = false;
+ wfRestoreWarnings();
}
private function getTextSpawnedOnce( $id ) {
return false;
}
- return $text;
+ // Do normalization in the dump thread...
+ $stripped = str_replace( "\r", "", $text );
+ $normalized = UtfNormal::cleanUp( $stripped );
+ return $normalized;
}
function startElement( $parser, $name, $attribs ) {