32 if ( $file !==
null ) {
33 $command .=
" > " . Shell::escape( $file );
38 $this->filename = $file;
45 parent::writeCloseStream( $string );
46 if ( $this->procOpenResource ) {
47 proc_close( $this->procOpenResource );
48 $this->procOpenResource =
false;
60 $this->procOpenResource = proc_open(
$command, $spec, $pipes );
61 $this->handle = $pipes[0];
77 if ( $this->handle ) {
78 fclose( $this->handle );
79 $this->handle =
false;
81 if ( $this->procOpenResource ) {
82 proc_close( $this->procOpenResource );
83 $this->procOpenResource =
false;
88 $command .=
" > " . Shell::escape( $this->filename );
checkRenameArgCount( $newname)
renameOrException( $newname)
closeAndRename( $newname, $open=false)
Close the old file, and move it to a specified name.Use this for the last piece of a file written out...
writeCloseStream( $string)
__construct( $command, $file=null)
closeRenameAndReopen( $newname)
Close the old file, move it to a specified name, and reopen new file with the old name....
resource false $procOpenResource