43 if ( !is_null(
$file ) ) {
49 $this->filename =
$file;
56 parent::writeCloseStream( $string );
57 if ( $this->procOpenResource ) {
58 proc_close( $this->procOpenResource );
59 $this->procOpenResource =
false;
71 $this->procOpenResource = proc_open(
$command, $spec, $pipes );
72 $this->handle = $pipes[0];
88 if ( $this->handle ) {
89 fclose( $this->handle );
90 $this->handle =
false;
92 if ( $this->procOpenResource ) {
93 proc_close( $this->procOpenResource );
94 $this->procOpenResource =
false;
99 $command .=
" > " . Shell::escape( $this->filename );