/PHP-5.6/Zend/ |
H A D | zend_virtual_cwd.h | 71 (len >= 2 && IS_SLASH(path[0]) && IS_SLASH(path[1])) 73 (len >= 2 && ((isalpha(path[0]) && path[1] == ':') || IS_UNC_PATH(path, len))) 86 ((strchr(path, ':') != NULL) || ((len >= 1) && ((path[0] == '/') || (path[0] == '\\')))) 293 #define VCWD_FOPEN(path, mode) fopen(path, mode) argument 294 #define VCWD_OPEN(path, flags) open(path, flags) argument 296 #define VCWD_CREAT(path, mode) creat(path, mode) argument 304 #define VCWD_CHDIR(path) chdir(path) argument 308 #define VCWD_LSTAT(path, buff) lstat(path, buff) argument 309 #define VCWD_UNLINK(path) unlink(path) argument 326 # define VCWD_UTIME(path, time) utime(path, time) argument [all …]
|
H A D | zend_virtual_cwd.c | 306 if (path[0] >= 'A' && path[0] <= 'Z') { in php_sys_stat_ex() 322 if (path[0] >= 'A' && path[0] <= 'Z') { in php_sys_stat_ex() 651 memcmp(path, (*bucket)->path, path_len) == 0) { in realpath_cache_del() 696 memcpy(bucket->path, path, path_len+1); in realpath_cache_add() 745 memcmp(path, (*bucket)->path, path_len) == 0) { in realpath_cache_find() 831 if (j == 0 && path[0] == '.' && path[1] == '.' && in tsrm_realpath_r() 838 path[j+1] == '.' && path[j+2] == '.' && in tsrm_realpath_r() 1051 memmove(path+i, path, j+1); in tsrm_realpath_r() 1110 memmove(path+i, path, j+1); in tsrm_realpath_r() 1448 } else if (!IS_ABSOLUTE_PATH(path, strlen(path))) { in virtual_realpath() [all …]
|
/PHP-5.6/ext/standard/tests/file/ |
H A D | basename_variation1-win32.phpt | 46 foreach ($paths as $path) { 47 $input = $prefix . $path; 57 basename for path A:/foo is: 59 basename for path A:/foo/ is: 61 basename for path A:/foo\ is: 77 basename for path Z:/foo is: 79 basename for path Z:/foo/ is: 81 basename for path Z:/foo\ is: 97 basename for path A:\foo is: 99 basename for path A:\foo/ is: [all …]
|
H A D | basename_variation1.phpt | 46 foreach ($paths as $path) { 47 $input = $prefix . $path; 57 basename for path A:/foo is: 59 basename for path A:/foo/ is: 61 basename for path A:/foo\ is: 77 basename for path Z:/foo is: 79 basename for path Z:/foo/ is: 81 basename for path Z:/foo\ is: 97 basename for path A:\foo is: 99 basename for path A:\foo/ is: [all …]
|
H A D | basename_variation2-win32.phpt | 41 foreach ($paths as $path) { 43 echo "basename for path $path, supplying suffix $suffix is:\n"; 44 var_dump(basename($path, $suffix)); 52 basename for path foo, supplying suffix .bar is: 54 basename for path foo, supplying suffix .b is: 56 basename for path foo, supplying suffix . is: 58 basename for path foo, supplying suffix is: 60 basename for path foo, supplying suffix foo is: 68 basename for path foo, supplying suffix / is: 70 basename for path foo, supplying suffix \ is: [all …]
|
H A D | basename_variation2.phpt | 41 foreach ($paths as $path) { 43 echo "basename for path $path, supplying suffix $suffix is:\n"; 44 var_dump(basename($path, $suffix)); 52 basename for path foo, supplying suffix .bar is: 54 basename for path foo, supplying suffix .b is: 56 basename for path foo, supplying suffix . is: 58 basename for path foo, supplying suffix is: 60 basename for path foo, supplying suffix foo is: 68 basename for path foo, supplying suffix / is: 70 basename for path foo, supplying suffix \ is: [all …]
|
H A D | glob_variation4.phpt | 5 $path = dirname(__FILE__); 7 ini_set('open_basedir', $path); 9 var_dump(glob("$path/*.none")); 10 var_dump(glob("$path/?.none")); 11 var_dump(glob("$path/*{hello,world}.none")); 12 var_dump(glob("$path/*/nothere")); 13 var_dump(glob("$path/[aoeu]*.none")); 14 var_dump(glob("$path/directly_not_exists")); 16 var_dump($path == ini_get('open_basedir'));
|
H A D | basename_variation4.phpt | 23 $path = 'path'; 110 string(4) "path" 113 string(4) "path" 116 string(4) "path" 119 string(4) "path" 122 string(4) "path" 125 string(4) "path" 128 string(4) "path" 131 string(4) "path" 134 string(4) "path" [all …]
|
H A D | userwrapper.phpt | 22 function url_stat($path, $options) { 26 print "Stating file: $path\n"; 36 unlink('test://example.com/path/to/file'); 37 rename('test://example.com/path/to/from', 'test://example.com/path/to/to'); 39 @rename('test://example.com/path/to/from', 'http://example.com/path/to/to'); 40 mkdir('test://example.com/path/to/directory', 0755); 41 rmdir('test://example.com/path/to/directory'); 42 print_r(stat('test://example.com/path/to/file')); 47 Unlinking file: test://example.com/path/to/file 48 Renaming test://example.com/path/to/from to test://example.com/path/to/to [all …]
|
H A D | touch_variation5.phpt | 69 foreach($paths as $path) { 72 if (is_dir($path) || is_file($path)) { 76 $res = touch($path); 86 unlink($path); 103 unlink($path); 112 foreach($paths as $path) { 117 rmdir($path); 125 unlink($path); 132 function test_path($path) { 136 $res = touch($path,0,0); [all …]
|
H A D | glob_variation3.phpt | 5 $path = dirname(__FILE__); 9 var_dump(glob("$path/*.none")); 10 var_dump(glob("$path/?.none")); 11 var_dump(glob("$path/*{hello,world}.none")); 12 var_dump(glob("$path/*/nothere")); 13 var_dump(glob("$path/[aoeu]*.none")); 14 var_dump(glob("$path/directly_not_exists"));
|
H A D | touch_variation5-win32.phpt | 69 foreach($paths as $path) { 72 if (is_dir($path) || is_file($path)) { 76 $res = touch($path); 86 unlink($path); 103 unlink($path); 112 foreach($paths as $path) { 117 rmdir($path); 125 unlink($path); 132 function test_path($path) { 136 $res = touch($path,0,0); [all …]
|
H A D | touch_variation6-win32.phpt | 75 foreach($paths as $path) { 78 if (is_dir($path) || is_file($path)) { 82 $res = touch($path); 92 unlink($path); 109 unlink($path); 118 foreach($paths as $path) { 123 rmdir($path); 131 unlink($path); 138 function test_path($path) { 142 $res = touch($path,0,0); [all …]
|
H A D | glob_variation6.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.6/main/streams/ |
H A D | glob_wrapper.c | 44 char *path; member 117 path = pos+1; in php_glob_stream_path_split() 121 path = pos+1; in php_glob_stream_path_split() 125 *p_file = path; in php_glob_stream_path_split() 128 if (pglob->path) { in php_glob_stream_path_split() 132 path--; in php_glob_stream_path_split() 144 const char *path; in php_glob_stream_read() local 150 PHP_STRLCPY(ent->d_name, path, sizeof(ent->d_name), strlen(path)); in php_glob_stream_read() 154 if (pglob->path) { in php_glob_stream_read() 171 if (pglob->path) { in php_glob_stream_close() [all …]
|
/PHP-5.6/ext/standard/tests/file/windows_acls/ |
H A D | bug44859_4.phpt | 24 $path = './a.txt'; 26 create_file($path, $perms); 27 clearstatcache(true, $path); 29 if (is_readable($path) == $exp) { 35 delete_file($path); 39 $path = 'adir'; 42 create_dir($path, $perms); 43 clearstatcache(true, $path); 45 if (is_readable($path) == $exp) { 51 delete_dir($path); [all …]
|
H A D | bug44859.phpt | 22 $path = __DIR__ . '/a.txt'; 24 create_file($path, $perms); 25 clearstatcache(true, $path); 27 if (is_writable($path) == $exp) { 30 var_dump(is_writable($path), $exp); 33 delete_file($path); 37 $path = __DIR__ . '/adir'; 40 create_dir($path, $perms); 41 clearstatcache(true, $path); 43 if (is_writable($path) == $exp) { [all …]
|
H A D | bug44859_2.phpt | 22 $path = __DIR__ . '/a.txt'; 24 create_file($path, $perms); 25 clearstatcache(true, $path); 27 if (is_readable($path) == $exp) { 30 var_dump(is_readable($path), $exp); 33 delete_file($path); 37 $path = __DIR__ . '/adir'; 40 create_dir($path, $perms); 41 clearstatcache(true, $path); 43 if (is_readable($path) == $exp) { [all …]
|
/PHP-5.6/ext/standard/tests/url/ |
H A D | parse_url_basic_001.phpt | 26 ["path"]=> 42 ["path"]=> 47 ["path"]=> 56 ["path"]=> 61 ["path"]=> 66 ["path"]=> 82 ["path"]=> 87 ["path"]=> 92 ["path"]=> 108 ["path"]=> [all …]
|
H A D | bug54180.phpt | 2 Bug #54180 (parse_url() incorrectly parses path when ? in fragment) 6 var_dump(parse_url("http://example.com/path/script.html?t=1#fragment?data")); 7 var_dump(parse_url("http://example.com/path/script.html#fragment?data")); 16 ["path"]=> 17 string(17) "/path/script.html" 28 ["path"]=> 29 string(17) "/path/script.html"
|
H A D | parse_url_variation_001.phpt | 85 ["path"]=> 91 ["path"]=> 97 ["path"]=> 103 ["path"]=> 109 ["path"]=> 115 ["path"]=> 121 ["path"]=> 127 ["path"]=> 133 ["path"]=> 164 ["path"]=> [all …]
|
/PHP-5.6/ext/standard/tests/dir/ |
H A D | readdir_basic.phpt | 20 $path = dirname(__FILE__) . '/readdir_basic'; 21 mkdir($path); 22 create_files($path, 3); 24 echo "\n-- Call readdir() with \$path argument --\n"; 25 var_dump($dh = opendir($path)); 36 var_dump($dh = opendir($path)); 46 delete_files($path, 3); 52 $path = dirname(__FILE__) . '/readdir_basic'; 53 rmdir($path); 58 -- Call readdir() with $path argument -- [all …]
|
H A D | opendir_variation4.phpt | 28 echo "\n-- \$path = './level_one': --\n"; 38 echo "\n-- \$path = '..': --\n"; 47 echo "\n-- \$path = '../': --\n"; 51 echo "\n-- \$path = './': --\n"; 82 -- $path = './level_one': -- 86 -- $path = 'level_one/level_two': -- 90 -- $path = '..': -- 93 -- $path = 'level_two', '.': -- 97 -- $path = '../': -- 100 -- $path = './': -- [all …]
|
/PHP-5.6/ext/phar/tests/files/ |
H A D | pear2coverage.phar.php | 167 function mangleTestFile($path) 532 function coverageInfo($path) argument 600 $modified[] = $path; 646 protected $path; 656 $this->path = $path; 705 return $this->path; 814 function coverageInfo($path) argument 882 $modified[] = $path; 1201 return array($this->pathCovered[$path], $this->pathTotal[$path]); 1262 function getFileId($path) [all …]
|
/PHP-5.6/ext/session/tests/ |
H A D | session_get_cookie_params_variation1.phpt | 27 ini_set("session.cookie_path", "/path"); 44 ["path"]=> 56 ["path"]=> 68 ["path"]=> 69 string(5) "/path" 80 ["path"]=> 81 string(5) "/path" 92 ["path"]=> 93 string(5) "/path" 104 ["path"]=> [all …]
|