34 if ( $file !==
null ) {
35 $command .=
" > " . Shell::escape( $file );
40 $this->filename = $file;
47 parent::writeCloseStream( $string );
48 if ( $this->procOpenResource ) {
49 proc_close( $this->procOpenResource );
50 $this->procOpenResource =
false;
62 $this->procOpenResource = proc_open(
$command, $spec, $pipes );
63 $this->handle = $pipes[0];
79 if ( $this->handle ) {
80 fclose( $this->handle );
81 $this->handle =
false;
83 if ( $this->procOpenResource ) {
84 proc_close( $this->procOpenResource );
85 $this->procOpenResource =
false;
90 $command .=
" > " . Shell::escape( $this->filename );
98class_alias( DumpPipeOutput::class,
'DumpPipeOutput' );