* (bug 27016) Fix for r77638: dumpTextPass.php now consider the "output" parameter

Also added "output" parameter to the doc since nothing was mentioning it
This commit is contained in:
Alexandre Emsenhuber 2011-01-29 09:00:38 +00:00
parent d11bf6b0e0
commit 8eb3b596e0

View file

@ -157,7 +157,7 @@ class TextPassDumper extends BackupDumper {
$reader = new XMLReader();
$reader->open( $this->input );
$writer = new XMLWriter();
$writer->openURI( 'php://stdout' );
$writer->openMemory();
while ( $reader->read() ) {
@ -216,8 +216,8 @@ class TextPassDumper extends BackupDumper {
}
$writer->text( $reader->value );
}
$this->sink->write( $writer->outputMemory() );
}
$writer->flush();
}
function getText( $id ) {
@ -451,6 +451,8 @@ Options:
--report=n Report position and speed after every n pages processed.
(Default: 100)
--server=h Force reading from MySQL server h
--output=<type>:<file> Write to a file instead of stdout
<type>s: file, gzip, bzip2, 7zip
--current Base ETA on number of pages in database instead of all revisions
--spawn Spawn a subprocess for loading text records
--help Display this help message