Home
last modified time | relevance | path

Searched refs:path (Results 1 – 25 of 678) sorted by relevance

12345678910>>...28

/PHP-5.5/TSRM/
H A Dtsrm_virtual_cwd.h71 (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] == '\\'))))
291 #define VCWD_FOPEN(path, mode) fopen(path, mode) argument
292 #define VCWD_OPEN(path, flags) open(path, flags) argument
294 #define VCWD_CREAT(path, mode) creat(path, mode) argument
302 #define VCWD_CHDIR(path) chdir(path) argument
306 #define VCWD_LSTAT(path, buff) lstat(path, buff) argument
307 #define VCWD_UNLINK(path) unlink(path) argument
324 # define VCWD_UTIME(path, time) utime(path, time) argument
[all …]
H A Dtsrm_virtual_cwd.c295 if (path[0] >= 'A' && path[0] <= 'Z') { in php_sys_stat_ex()
311 if (path[0] >= 'A' && path[0] <= 'Z') { in php_sys_stat_ex()
621 memcmp(path, (*bucket)->path, path_len) == 0) { in realpath_cache_del()
666 memcpy(bucket->path, path, path_len+1); in realpath_cache_add()
715 memcmp(path, (*bucket)->path, path_len) == 0) { in realpath_cache_find()
801 if (j == 0 && path[0] == '.' && path[1] == '.' && in tsrm_realpath_r()
808 path[j+1] == '.' && path[j+2] == '.' && in tsrm_realpath_r()
1020 memmove(path+i, path, j+1); in tsrm_realpath_r()
1079 memmove(path+i, path, j+1); in tsrm_realpath_r()
1417 } else if (!IS_ABSOLUTE_PATH(path, strlen(path))) { in virtual_realpath()
[all …]
/PHP-5.5/ext/standard/tests/file/
H A Dbasename_variation1-win32.phpt46 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 Dbasename_variation1.phpt46 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 Dbasename_variation2-win32.phpt41 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 Dbasename_variation2.phpt41 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 Dglob_variation4.phpt5 $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 Dbasename_variation4.phpt23 $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 Duserwrapper.phpt22 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 Dtouch_variation5.phpt69 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 Dglob_variation3.phpt5 $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 Dtouch_variation5-win32.phpt69 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 Dtouch_variation6-win32.phpt75 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 Dglob_variation6.phpt7 $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/main/streams/
H A Dglob_wrapper.c44 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 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.5/ext/standard/tests/file/windows_acls/
H A Dbug44859_4.phpt24 $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 Dbug44859.phpt22 $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 Dbug44859_2.phpt22 $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.5/ext/standard/tests/url/
H A Dparse_url_basic_001.phpt26 ["path"]=>
42 ["path"]=>
47 ["path"]=>
56 ["path"]=>
61 ["path"]=>
66 ["path"]=>
82 ["path"]=>
87 ["path"]=>
92 ["path"]=>
108 ["path"]=>
[all …]
H A Dbug54180.phpt2 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 Dparse_url_variation_001.phpt85 ["path"]=>
91 ["path"]=>
97 ["path"]=>
103 ["path"]=>
109 ["path"]=>
115 ["path"]=>
121 ["path"]=>
127 ["path"]=>
133 ["path"]=>
164 ["path"]=>
[all …]
/PHP-5.5/ext/standard/tests/dir/
H A Dreaddir_basic.phpt20 $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 Dopendir_variation4.phpt28 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.5/ext/phar/tests/files/
H A Dpear2coverage.phar.php167 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.5/ext/session/tests/
H A Dsession_get_cookie_params_variation1.phpt27 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 …]

Completed in 101 milliseconds

12345678910>>...28