/PHP-5.5/ext/standard/tests/file/windows_acls/ |
H A D | common.inc | 154 if (is_file($path)) { 155 unlink($path); 163 if (is_dir($path)) { 165 rmdir($path); 174 if (!is_writable($path)) { 179 delete_file($path); 183 if (!is_writable($path)) { 188 delete_file($path); 190 $path = __DIR__ . '/adir'; 192 if (!is_writable($path)) { [all …]
|
/PHP-5.5/ext/session/tests/ |
H A D | session_set_save_handler_sid_001.phpt | 16 public $path; 18 public function open($path, $name) { 19 if (!$path) { 20 $path = sys_get_temp_dir(); 22 $this->path = $path . '/u_sess_' . $name; 31 return @file_get_contents($this->path . $id); 35 return file_put_contents($this->path . $id, $data); 39 @unlink($this->path . $id); 43 foreach (glob($this->path . '*') as $filename) {
|
H A D | session_set_save_handler_sid_002.phpt | 16 public $path; 18 public function open($path, $name) { 19 if (!$path) { 20 $path = sys_get_temp_dir(); 22 $this->path = $path . '/u_sess_' . $name; 31 return @file_get_contents($this->path . $id); 35 return file_put_contents($this->path . $id, $data); 39 @unlink($this->path . $id); 43 foreach (glob($this->path . '*') as $filename) {
|
H A D | session_set_save_handler_class_016.phpt | 22 public $path; 24 public function open($path, $name) { 25 if (!$path) { 26 $path = sys_get_temp_dir(); 28 $this->path = $path . '/u_sess_' . $name; 37 return @file_get_contents($this->path . $id); 41 return file_put_contents($this->path . $id, $data); 45 @unlink($this->path . $id); 49 foreach (glob($this->path . '*') as $filename) {
|
H A D | session_set_save_handler_class_017.phpt | 22 public $path; 24 public function open($path, $name) { 25 if (!$path) { 26 $path = sys_get_temp_dir(); 28 $this->path = $path . '/u_sess_' . $name; 37 return @file_get_contents($this->path . $id); 41 return file_put_contents($this->path . $id, $data); 45 @unlink($this->path . $id); 49 foreach (glob($this->path . '*') as $filename) {
|
H A D | session_set_save_handler_iface_003.phpt | 22 public $path; 24 public function open($path, $name) { 25 if (!$path) { 26 $path = sys_get_temp_dir(); 28 $this->path = $path . '/u_sess_' . $name; 37 return @file_get_contents($this->path . $id); 41 return file_put_contents($this->path . $id, $data); 45 @unlink($this->path . $id); 49 foreach (glob($this->path . '*') as $filename) {
|
H A D | session_set_save_handler_iface_002.phpt | 22 public function open($path, $name); 31 public $path; 33 public function open($path, $name) { 34 if (!$path) { 35 $path = sys_get_temp_dir(); 37 $this->path = $path . '/u_sess_' . $name; 46 return @file_get_contents($this->path . $id); 54 @unlink($this->path . $id); 58 foreach (glob($this->path . '*') as $filename) { 70 return file_put_contents($handler->path . $id, $data);
|
H A D | session_set_save_handler_iface_001.phpt | 22 public $path; 24 public function open($path, $name) { 25 if (!$path) { 26 $path = sys_get_temp_dir(); 28 $this->path = $path . '/u_sess_' . $name; 37 return @file_get_contents($this->path . $id); 41 return file_put_contents($this->path . $id, $data); 45 @unlink($this->path . $id); 49 foreach (glob($this->path . '*') as $filename) {
|
H A D | session_set_save_handler_class_002.phpt | 22 public $path; 24 public function open($path, $name) { 25 if (!$path) { 26 $path = sys_get_temp_dir(); 28 $this->path = $path . '/u_sess_' . $name; 37 return @file_get_contents($this->path . $id); 41 return file_put_contents($this->path . $id, $data); 45 @unlink($this->path . $id); 49 foreach (glob($this->path . '*') as $filename) {
|
/PHP-5.5/ext/phar/tests/zip/files/ |
H A D | zipmaker.php.inc | 15 protected $path; 16 function __construct($path) 22 $this->path = $path; 27 * @param string relative path within the package 30 function addFile($path, $fileOrStream) 33 $this->zip->addFromString($path, stream_get_contents($fileOrStream)); 35 $this->zip->addFromString($path, $fileOrStream); 45 if (true !== $this->zip->open($this->path, ZIPARCHIVE::CREATE)) { 47 'Cannot open ZIP archive ' . $this->path
|
/PHP-5.5/ext/standard/tests/dir/ |
H A D | scandir_variation4.phpt | 30 echo "\n-- \$path = './level_one': --\n"; 38 echo "\n-- \$path = '..': --\n"; 46 echo "\n-- \$path = '../': --\n"; 50 echo "\n-- \$path = './': --\n"; 71 -- $path = './level_one': -- 86 -- $path = 'level_one/level_two': -- 99 -- $path = '..': -- 114 -- $path = 'level_two', '.': -- 127 -- $path = '../': -- 142 -- $path = './': -- [all …]
|
H A D | opendir_variation3.phpt | 5 /* Prototype : mixed opendir(string $path[, resource $context]) 11 * Call opendir() twice with the same directory as $path argument 16 $path = dirname(__FILE__) . "/opendir_variation3"; 17 mkdir($path); 20 var_dump($dh1 = opendir($path)); 23 var_dump($dh2 = opendir($path)); 37 $path = dirname(__FILE__) . "/opendir_variation3"; 38 rmdir($path);
|
H A D | opendir_error2.phpt | 11 /* Prototype : mixed opendir(string $path[, resource $context]) 17 * Pass a non-existent directory as $path argument to opendir() to test behaviour 22 echo "\n-- Pass a non-existent absolute path: --\n"; 23 $path = dirname(__FILE__) . "/idonotexist"; 24 var_dump(opendir($path)); 26 echo "\n-- Pass a non-existent relative path: --\n"; 34 -- Pass a non-existent absolute path: -- 39 -- Pass a non-existent relative path: --
|
/PHP-5.5/ext/standard/tests/file/ |
H A D | glob_variation5.phpt | 7 $path = dirname(__FILE__); 11 var_dump(glob("$path/*.none")); 12 var_dump(glob("$path/?.none")); 13 var_dump(glob("$path/*{hello,world}.none")); 14 var_dump(glob("$path/*/nothere")); 15 var_dump(glob("$path/[aoeu]*.none")); 16 var_dump(glob("$path/directly_not_exists"));
|
/PHP-5.5/ext/standard/tests/strings/ |
H A D | url_t.phpt | 89 ["path"]=> 94 ["path"]=> 110 ["path"]=> 115 ["path"]=> 124 ["path"]=> 129 ["path"]=> 134 ["path"]=> 150 ["path"]=> 155 ["path"]=> 160 ["path"]=> [all …]
|
/PHP-5.5/main/ |
H A D | fopen_wrappers.h | 33 PHPAPI int php_check_open_basedir(const char *path TSRMLS_DC); 34 PHPAPI int php_check_open_basedir_ex(const char *path, int warn TSRMLS_DC); 35 PHPAPI int php_check_specific_open_basedir(const char *basedir, const char *path TSRMLS_DC); 47 PHPAPI int php_check_safe_mode_include_dir(const char *path TSRMLS_DC); 49 PHPAPI char *php_resolve_path(const char *filename, int filename_len, const char *path TSRMLS_DC); 51 PHPAPI FILE *php_fopen_with_path(const char *filename, const char *mode, const char *path, char **o… 53 PHPAPI char *php_strip_url_passwd(char *path);
|
/PHP-5.5/ext/phar/tests/tar/files/ |
H A D | tarmaker.php.inc | 17 protected $path; 19 function __construct($path, $compress = 'zlib') 30 $this->path = $path; 38 * @param string relative path within the package 41 function addFile($path, $fileOrStream, $stat = null) 71 if (strlen($path) > 255) { 75 } else if (strlen($path) > 100) { 76 $filePrefix = substr($path, 0, strlen($path)-100); 77 $path = substr($path, -100); 81 $path, [all …]
|
H A D | corrupt_tarmaker.php.inc | 17 protected $path; 19 function __construct($path, $compress = 'zlib') 30 $this->path = $path; 38 * @param string relative path within the package 78 if (strlen($path) > 255) { 82 } else if (strlen($path) > 100) { 83 $filePrefix = substr($path, 0, strlen($path)-100); 84 $path = substr($path, -100); 88 $path, 142 $this->tmp = bzopen($this->path, 'w'); [all …]
|
H A D | make.dangerous.tar.php.inc | 18 protected $path; 20 function __construct($path, $compress = 'zlib') 31 $this->path = $path; 39 * @param string relative path within the package 42 function addFile($path, $fileOrStream, $stat = null) 72 if (strlen($path) > 255) { 76 } else if (strlen($path) > 100) { 77 $filePrefix = substr($path, 0, strlen($path)-100); 78 $path = substr($path, -100); 82 $path, [all …]
|
/PHP-5.5/ext/zip/ |
H A D | zip_stream.c | 103 const char *path = stream->orig_path; in php_zip_ops_stat() local 113 fragment = strchr(path, '#'); in php_zip_ops_stat() 120 path += 6; in php_zip_ops_stat() 128 path_len = strlen(path); in php_zip_ops_stat() 153 if (path[path_len-1] != '/') { in php_zip_ops_stat() 212 zf = zip_fopen(stream_za, path, 0); in php_stream_zip_open() 238 char *path, in php_stream_zip_opener() argument 259 fragment = strchr(path, '#'); in php_stream_zip_opener() 265 path += 6; in php_stream_zip_opener() 273 path_len = strlen(path); in php_stream_zip_opener() [all …]
|
/PHP-5.5/win32/ |
H A D | registry.c | 141 memcpy(new_path, path, path_len); in LoadDirectory() 178 if(!path) { in UpdateIniFromRegistry() 209 orig_path = path = estrdup(path); in UpdateIniFromRegistry() 212 p = strchr(path, ':'); in UpdateIniFromRegistry() 217 if (path[0] != '\\' && path[0] != '/') { in UpdateIniFromRegistry() 239 orig_path = path; in UpdateIniFromRegistry() 244 while (path[path_len] != 0) { in UpdateIniFromRegistry() 245 if (path[path_len] == '\\') { in UpdateIniFromRegistry() 246 path[path_len] = '/'; in UpdateIniFromRegistry() 250 zend_str_tolower(path, path_len); in UpdateIniFromRegistry() [all …]
|
/PHP-5.5/win32/build/ |
H A D | projectgen.js | 24 sources = (path ? sources.replace(/\.\//g, path) : sources); 29 headers = (path ? headers.replace(/\.\//g, path) : headers); 445 var path = ""; 495 if (path.length > 0 && path != ext_dir) { 511 path = ""; 516 sources = sources.replace(/\s/g, (path ? " ./" + path + "\\" : " ./")); 557 path = "..\\"; 566 path = "..\\"; 568 path += "..\\"; 572 path = "..\\"; [all …]
|
/PHP-5.5/sapi/tests/ |
H A D | test004.phpt | 6 path is in PATH_TRANSLATED. SCRIPT_NAME in this is faked, 11 PATH_INFO=/path/info 15 REDIRECT_URL=/path 16 PATH_TRANSLATED=/path/info/fpp 17 PATH_INFO=/path/info 26 /path/info
|
H A D | test003.phpt | 8 PATH_INFO=/path/info 12 PATH_TRANSLATED=/path/bla 13 PATH_INFO=/path/info 14 SCRIPT_NAME=path 21 /path/info
|
/PHP-5.5/ext/filter/tests/ |
H A D | bug51192.phpt | 7 var_dump(filter_var('http://example.com/path', FILTER_VALIDATE_URL)); 8 var_dump(filter_var('http://exa-mple.com/path', FILTER_VALIDATE_URL)); 9 var_dump(filter_var('http://exa_mple.com/path', FILTER_VALIDATE_URL)); 11 string(23) "http://example.com/path" 12 string(24) "http://exa-mple.com/path"
|