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 );
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 bool $procOpenResource
if(PHP_SAPI !='cli-server') if(!isset( $_SERVER['SCRIPT_FILENAME'])) $file
Item class for a filearchive table row.