Index: trunk/phase3/maintenance/dumpTextPass.php |
— | — | @@ -157,7 +157,7 @@ |
158 | 158 | $reader = new XMLReader(); |
159 | 159 | $reader->open( $this->input ); |
160 | 160 | $writer = new XMLWriter(); |
161 | | - $writer->openURI( 'php://stdout' ); |
| 161 | + $writer->openMemory(); |
162 | 162 | |
163 | 163 | |
164 | 164 | while ( $reader->read() ) { |
— | — | @@ -216,8 +216,8 @@ |
217 | 217 | } |
218 | 218 | $writer->text( $reader->value ); |
219 | 219 | } |
| 220 | + $this->sink->write( $writer->outputMemory() ); |
220 | 221 | } |
221 | | - $writer->flush(); |
222 | 222 | } |
223 | 223 | |
224 | 224 | function getText( $id ) { |
— | — | @@ -451,6 +451,8 @@ |
452 | 452 | --report=n Report position and speed after every n pages processed. |
453 | 453 | (Default: 100) |
454 | 454 | --server=h Force reading from MySQL server h |
| 455 | + --output=<type>:<file> Write to a file instead of stdout |
| 456 | + <type>s: file, gzip, bzip2, 7zip |
455 | 457 | --current Base ETA on number of pages in database instead of all revisions |
456 | 458 | --spawn Spawn a subprocess for loading text records |
457 | 459 | --help Display this help message |