/PHP-8.2/Zend/ |
H A D | zend_virtual_cwd.h | 83 (len >= 2 && IS_SLASH(path[0]) && IS_SLASH(path[1])) 85 …(len >= 2 && (/* is local */isalpha(path[0]) && path[1] == ':' || /* is UNC */IS_SLASH(path[0]) &&… 262 #define VCWD_CHDIR(path) virtual_chdir(path) argument 269 #define VCWD_UNLINK(path) virtual_unlink(path) argument 288 #define VCWD_CREAT(path, mode) creat(path, mode) argument 304 #define VCWD_FOPEN(path, mode) fopen(path, mode) argument 305 #define VCWD_OPEN(path, flags) open(path, flags) argument 310 #define VCWD_UNLINK(path) unlink(path) argument 311 #define VCWD_CHDIR(path) chdir(path) argument 314 #define VCWD_CHMOD(path, mode) chmod(path, mode) argument [all …]
|
H A D | zend_virtual_cwd.c | 349 h ^= *path++; in realpath_cache_key() 371 memcmp(path, (*bucket)->path, path_len) == 0) { in realpath_cache_del() 412 memcpy(bucket->path, path, path_len+1); in realpath_cache_add() 456 memcmp(path, (*bucket)->path, path_len) == 0) { in realpath_cache_find() 550 if (j == 0 && path[0] == '.' && path[1] == '.' && in tsrm_realpath_r() 557 path[j+1] == '.' && path[j+2] == '.' && in tsrm_realpath_r() 867 memmove(path+i, path, j+1); in tsrm_realpath_r() 924 memmove(path+i, path, j+1); in tsrm_realpath_r() 1251 if (!*path) { in virtual_realpath() 1258 } else if (!IS_ABSOLUTE_PATH(path, strlen(path))) { in virtual_realpath() [all …]
|
/PHP-8.2/ext/standard/tests/file/ |
H A D | basename_variation1-win32.phpt | 46 foreach ($paths as $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: 101 basename for path A:\foo\ is: [all …]
|
H A D | basename_variation1.phpt | 46 foreach ($paths as $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: 101 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 = __DIR__; 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 | userwrapper.phpt | 24 function url_stat($path, $options) { 28 print "Stating file: $path\n"; 38 unlink('test://example.com/path/to/file'); 39 rename('test://example.com/path/to/from', 'test://example.com/path/to/to'); 41 @rename('test://example.com/path/to/from', 'http://example.com/path/to/to'); 42 mkdir('test://example.com/path/to/directory', 0755); 43 rmdir('test://example.com/path/to/directory'); 44 print_r(stat('test://example.com/path/to/file')); 49 Unlinking file: test://example.com/path/to/file 50 Renaming test://example.com/path/to/from to test://example.com/path/to/to [all …]
|
H A D | glob_variation3.phpt | 5 $path = __DIR__; 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.phpt | 24 // relative bad path 33 //absolute bad path 63 foreach($paths as $path) { 66 if (is_dir($path) || is_file($path)) { 70 $res = touch($path); 111 rmdir($path); 119 unlink($path); 126 function test_path($path) { 130 $res = touch($path,0,0); 140 function get_atime($path) { [all …]
|
H A D | touch_variation5-win32.phpt | 63 foreach($paths as $path) { 66 if (is_dir($path) || is_file($path)) { 70 $res = touch($path); 106 foreach($paths as $path) { 110 test_path($path); 111 rmdir($path); 119 unlink($path); 126 function test_path($path) { 130 $res = touch($path,0,0); 140 function get_atime($path) { [all …]
|
H A D | glob_variation5.phpt | 7 $path = __DIR__; 12 var_dump(glob("$path/*.none")); 13 var_dump(glob("$path/?.none")); 14 var_dump(glob("$path/*{hello,world}.none")); 15 var_dump(glob("$path/*/nothere")); 16 var_dump(glob("$path/[aoeu]*.none")); 17 var_dump(glob("$path/directly_not_exists"));
|
/PHP-8.2/main/streams/ |
H A D | glob_wrapper.c | 40 char *path; member 57 return pglob->path; in _php_glob_stream_get_path() 113 path = pos+1; in php_glob_stream_path_split() 117 path = pos+1; in php_glob_stream_path_split() 121 *p_file = path; in php_glob_stream_path_split() 124 if (pglob->path) { in php_glob_stream_path_split() 128 path--; in php_glob_stream_path_split() 140 const char *path; in php_glob_stream_read() local 152 PHP_STRLCPY(ent->d_name, path, sizeof(ent->d_name), strlen(path)); in php_glob_stream_read() 224 *opened_path = zend_string_init(path, strlen(path), 0); in php_glob_stream_opener() [all …]
|
/PHP-8.2/ext/standard/tests/file/windows_acls/ |
H A D | bug44859_4.phpt | 27 create_file($path, $perms); 28 clearstatcache(true, $path); 30 if (is_readable($path) == $exp) { 36 delete_file($path); 40 $path = $uniqueBaseName . '_dir'; 43 create_dir($path, $perms); 44 clearstatcache(true, $path); 46 if (is_readable($path) == $exp) { 52 delete_dir($path); 57 Testing file with relative path: [all …]
|
H A D | bug44859.phpt | 23 $path = $uniqueBasePath . '_file.txt'; 25 create_file($path, $perms); 26 clearstatcache(true, $path); 28 if (is_writable($path) == $exp) { 31 var_dump(is_writable($path), $exp); 34 delete_file($path); 38 $path = $uniqueBasePath . '_dir'; 41 create_dir($path, $perms); 42 clearstatcache(true, $path); 44 if (is_writable($path) == $exp) { [all …]
|
H A D | bug44859_2.phpt | 23 $path = $uniqueBasePath . '_file.txt'; 25 create_file($path, $perms); 26 clearstatcache(true, $path); 28 if (is_readable($path) == $exp) { 31 var_dump(is_readable($path), $exp); 34 delete_file($path); 38 $path = $uniqueBasePath . '_dir'; 41 create_dir($path, $perms); 42 clearstatcache(true, $path); 44 if (is_readable($path) == $exp) { [all …]
|
/PHP-8.2/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 | 19 ["path"]=> 35 ["path"]=> 40 ["path"]=> 49 ["path"]=> 54 ["path"]=> 59 ["path"]=> 75 ["path"]=> 80 ["path"]=> 85 ["path"]=> 101 ["path"]=> [all …]
|
H A D | parse_url_unterminated.phpt | 25 ["path"]=> 41 ["path"]=> 46 ["path"]=> 55 ["path"]=> 60 ["path"]=> 65 ["path"]=> 81 ["path"]=> 86 ["path"]=> 91 ["path"]=> 107 ["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"
|
/PHP-8.2/ext/standard/tests/dir/ |
H A D | readdir_basic.phpt | 15 $path = __DIR__ . '/readdir_basic'; 16 mkdir($path); 17 create_files($path, 3); 19 echo "\n-- Call readdir() with \$path argument --\n"; 20 var_dump($dh = opendir($path)); 31 var_dump($dh = opendir($path)); 41 delete_files($path, 3); 46 $path = __DIR__ . '/readdir_basic'; 47 rmdir($path); 52 -- Call readdir() with $path argument -- [all …]
|
H A D | readdir_basic-win32-mb.phpt | 21 $path = __DIR__ . '/私はガラスを食べられますreaddir_basic'; 22 mkdir($path); 23 create_files($path, 3); 25 echo "\n-- Call readdir() with \$path argument --\n"; 26 var_dump($dh = opendir($path)); 37 var_dump($dh = opendir($path)); 47 delete_files($path, 3); 52 $path = __DIR__ . '/私はガラスを食べられますreaddir_basic'; 53 rmdir($path); 58 -- Call readdir() with $path argument -- [all …]
|
H A D | opendir_variation4.phpt | 24 echo "\n-- \$path = './level_one': --\n"; 34 echo "\n-- \$path = '..': --\n"; 43 echo "\n-- \$path = '../': --\n"; 47 echo "\n-- \$path = './': --\n"; 78 -- $path = './level_one': -- 82 -- $path = 'level_one/level_two': -- 86 -- $path = '..': -- 89 -- $path = 'level_two', '.': -- 93 -- $path = '../': -- 96 -- $path = './': -- [all …]
|
/PHP-8.2/ext/session/tests/ |
H A D | session_get_cookie_params_variation1.phpt | 43 ["path"]=> 57 ["path"]=> 71 ["path"]=> 72 string(5) "/path" 85 ["path"]=> 86 string(5) "/path" 99 ["path"]=> 100 string(5) "/path" 113 ["path"]=> 114 string(5) "/path" [all …]
|
/PHP-8.2/main/ |
H A D | fopen_wrappers.h | 29 PHPAPI int php_check_open_basedir(const char *path); 30 PHPAPI int php_check_open_basedir_ex(const char *path, int warn); 31 PHPAPI int php_check_specific_open_basedir(const char *basedir, const char *path); 36 PHPAPI int php_check_safe_mode_include_dir(const char *path); 38 PHPAPI zend_string *php_resolve_path(const char *filename, size_t filename_len, const char *path); 40 PHPAPI FILE *php_fopen_with_path(const char *filename, const char *mode, const char *path, zend_str… 42 PHPAPI char *php_strip_url_passwd(char *path);
|