46 if (
$file !==
null ) {
52 $this->filename =
$file;
59 parent::writeCloseStream( $string );
60 if ( $this->procOpenResource ) {
61 proc_close( $this->procOpenResource );
62 $this->procOpenResource =
false;
74 $this->procOpenResource = proc_open(
$command, $spec, $pipes );
75 $this->handle = $pipes[0];
91 if ( $this->handle ) {
92 fclose( $this->handle );
93 $this->handle =
false;
95 if ( $this->procOpenResource ) {
96 proc_close( $this->procOpenResource );
97 $this->procOpenResource =
false;
102 $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
if(PHP_SAPI !='cli-server') if(!isset( $_SERVER['SCRIPT_FILENAME'])) $file
Item class for a filearchive table row.