if ( $channel === null ) {
$this->cleanupChanneled();
- $f = fopen( 'php://stdout', 'w' );
+ $f = fopen( 'php://stdout', 'a' );
fwrite( $f, $out );
fclose( $f );
}
if ( php_sapi_name() == 'cli' ) {
fwrite( STDERR, $err . "\n" );
} else {
- $f = fopen( 'php://stderr', 'w' );
+ $f = fopen( 'php://stderr', 'a' );
fwrite( $f, $err . "\n" );
fclose( $f );
}
return;
}
- $handle = fopen( 'php://stdout', 'w' );
+ $handle = fopen( 'php://stdout', 'a' );
// End the current line if necessary
if ( !$this->atLineStart && $channel !== $this->lastChannel ) {
}
}
+ /**
+ * @var $child Maintenance
+ */
$child = new $maintClass();
$child->loadParamsAndArgs( $this->mSelf, $this->mOptions, $this->mArgs );
if ( !is_null( $this->mDb ) ) {