Lines Matching refs:temp
63 chdir(Extract_Phar::$temp);
74 $a = realpath(Extract_Phar::$temp . DIRECTORY_SEPARATOR . $pt);
75 if (!$a || strlen(dirname($a)) < strlen(Extract_Phar::$temp)) {
105 static $temp;
152 $temp = self::tmpdir();
154 if (!$temp || !is_writable($temp)) {
161 $temp = $sessionpath;
164 $temp .= '/pharextract/'.basename(__FILE__, '.phar');
165 self::$temp = $temp;
167 @mkdir($temp, 0777, true);
168 $temp = realpath($temp);
170 if (!file_exists($temp . DIRECTORY_SEPARATOR . md5_file(__FILE__))) {
171 self::_removeTmpFiles($temp, getcwd());
172 @mkdir($temp, 0777, true);
173 @file_put_contents($temp . '/' . md5_file(__FILE__), '');
176 $a = !file_exists(dirname($temp . '/' . $path));
177 @mkdir(dirname($temp . '/' . $path), 0777, true);
181 @mkdir($temp . '/' . $path, 0777);
183 file_put_contents($temp . '/' . $path, self::extractFile($path, $file, $fp));
184 @chmod($temp . '/' . $path, 0666);
189 chdir($temp);
202 if (is_dir('/temp') || mkdir('/temp')) {
203 return realpath('/temp');
272 static function _removeTmpFiles($temp, $origdir)
274 chdir($temp);
285 @rmdir($temp);