/** * Destructor * * Unlocks any locked file pointers and closes all filepointers * * @access private */ function _File() { File::closeAll(); }
/** * Generate the temporary ssh_askpass script * * @param string $password The password to use for login. * * @return void */ protected function sshAskPass($password) { ($this->ssh_askpass_scripts =& File_Util::tmpFile()) . ""; $askpass_data = 'echo ' . $password . ' < /dev/null'; File::write($this->ssh_askpass_scripts, $askpass_data); File::closeAll(); chmod($this->ssh_askpass_scripts, 0700); }
function tearDown() { File::closeAll(); file_exists('test.txt') and unlink('test.txt'); }
/** * Destructor * * Unlocks any locked file pointers and closes all filepointers * * @access private */ public static function _File() { File::closeAll(); }