42 if ( !is_null(
$file ) ) {
48 $this->filename =
$file;
55 parent::writeCloseStream( $string );
56 if ( $this->procOpenResource ) {
57 proc_close( $this->procOpenResource );
58 $this->procOpenResource =
false;
70 $this->procOpenResource = proc_open(
$command, $spec, $pipes );
71 $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 );