/PHP-7.1/Zend/ |
H A D | zend_virtual_cwd.h | 72 (len >= 2 && IS_SLASH(path[0]) && IS_SLASH(path[1])) 74 …(len >= 2 && (/* is local */isalpha(path[0]) && path[1] == ':' || /* is UNC */IS_SLASH(path[0]) &&… 87 ((strchr(path, ':') != NULL) || ((len >= 1) && ((path[0] == '/') || (path[0] == '\\')))) 271 #define VCWD_CHDIR(path) virtual_chdir(path) argument 278 #define VCWD_UNLINK(path) virtual_unlink(path) argument 297 #define VCWD_CREAT(path, mode) creat(path, mode) argument 314 #define VCWD_OPEN(path, flags) open(path, flags) argument 319 #define VCWD_UNLINK(path) unlink(path) argument 320 #define VCWD_CHDIR(path) chdir(path) argument 323 #define VCWD_CHMOD(path, mode) chmod(path, mode) argument [all …]
|
H A D | zend_virtual_cwd.c | 328 if (path[0] >= 'A' && path[0] <= 'Z') { in php_sys_stat_ex() 648 h ^= *path++; in realpath_cache_key() 681 memcmp(path, (*bucket)->path, path_len) == 0) { in realpath_cache_del() 722 memcpy(bucket->path, path, path_len+1); in realpath_cache_add() 766 memcmp(path, (*bucket)->path, path_len) == 0) { in realpath_cache_find() 856 if (j == 0 && path[0] == '.' && path[1] == '.' && in tsrm_realpath_r() 863 path[j+1] == '.' && path[j+2] == '.' && in tsrm_realpath_r() 1130 memmove(path+i, path, j+1); in tsrm_realpath_r() 1192 memmove(path+i, path, j+1); in tsrm_realpath_r() 1540 } else if (!IS_ABSOLUTE_PATH(path, strlen(path))) { in virtual_realpath() [all …]
|
/PHP-7.1/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 …]
|
/PHP-7.1/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() 219 *opened_path = zend_string_init(path, strlen(path), 0); in php_glob_stream_opener() [all …]
|
/PHP-7.1/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-7.1/ext/standard/tests/url/ |
H A D | bug74780.phpt | 6 parse_url('//php.net/path?query=1:2'), 7 parse_url('//php.net/path.php?query=a:b'), 8 parse_url('//username@php.net/path?query=1:2') 16 ["path"]=> 17 string(5) "/path" 24 ["path"]=> 25 string(9) "/path.php" 34 ["path"]=> 35 string(5) "/path"
|
H A D | parse_url_basic_001.phpt | 25 ["path"]=> 41 ["path"]=> 46 ["path"]=> 55 ["path"]=> 60 ["path"]=> 65 ["path"]=> 81 ["path"]=> 86 ["path"]=> 91 ["path"]=> 107 ["path"]=> [all …]
|
/PHP-7.1/win32/ |
H A D | ioutil.c | 211 file = CreateFileW(path, in php_win32_ioutil_open_w() 368 if (!DeleteFileW(path)) { in php_win32_ioutil_unlink_w() 473 start = path; in php_win32_ioutil_dirname() 483 if ((2 <= len) && isalpha((int)((unsigned char *)path)[0]) && (':' == path[1])) { in php_win32_ioutil_dirname() 485 path += 2; in php_win32_ioutil_dirname() 501 path[1] = '\0'; in php_win32_ioutil_dirname() 511 path[0] = '.'; in php_win32_ioutil_dirname() 512 path[1] = '\0'; in php_win32_ioutil_dirname() 523 path[1] = '\0'; in php_win32_ioutil_dirname() 608 return _waccess(path, mode); [all …]
|
/PHP-7.1/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-win32-mb.phpt | 34 echo "\n-- \$path = './私はガラスを食べられますlevel_one': --\n"; 44 echo "\n-- \$path = '..': --\n"; 48 echo "\n-- \$path = 'level_two', '.': --\n"; 53 echo "\n-- \$path = '../': --\n"; 57 echo "\n-- \$path = './': --\n"; 88 -- $path = './私はガラスを食べられますlevel_one': -- 96 -- $path = '..': -- 99 -- $path = 'level_two', '.': -- 103 -- $path = '../': -- 106 -- $path = './': -- [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 …]
|
H A D | readdir_basic-win32-mb.phpt | 26 $path = dirname(__FILE__) . '/私はガラスを食べられますreaddir_basic'; 27 mkdir($path); 28 create_files($path, 3); 30 echo "\n-- Call readdir() with \$path argument --\n"; 31 var_dump($dh = opendir($path)); 41 echo "\n-- Call readdir() without \$path argument --\n"; 42 var_dump($dh = opendir($path)); 52 delete_files($path, 3); 59 rmdir($path); 64 -- Call readdir() with $path argument -- [all …]
|
/PHP-7.1/main/ |
H A D | fopen_wrappers.h | 33 PHPAPI int php_check_open_basedir(const char *path); 34 PHPAPI int php_check_open_basedir_ex(const char *path, int warn); 35 PHPAPI int php_check_specific_open_basedir(const char *basedir, const char *path); 40 PHPAPI int php_check_safe_mode_include_dir(const char *path); 42 PHPAPI zend_string *php_resolve_path(const char *filename, int filename_len, const char *path); 44 PHPAPI FILE *php_fopen_with_path(const char *filename, const char *mode, const char *path, zend_str… 46 PHPAPI char *php_strip_url_passwd(char *path);
|