/PHP-5.4/ext/standard/tests/file/ |
H A D | include_streams.phpt | 13 public $path; 20 function url_stat($path, $flags) { 28 function stream_open($path, $mode, $options, &$opened_path) 30 $this->path = $path; 34 $split = parse_url($path); 36 empty($split["path"]) || 37 empty($GLOBALS[substr($split["path"],1)])) { 40 $this->varname = substr($split["path"],1);
|
H A D | readfile_variation3.phpt | 2 Test readfile() function: usage variation - include path 8 /* test readfile() by providing an include path, second argument */ 16 echo "*** Testing readfile(): checking second argument, include path ***\n"; 32 // use the context argument with include path 33 echo "*** Testing readfile(): checking second argument, include path with context specified ***\n"; 47 *** Testing readfile(): checking second argument, include path *** 55 *** Testing readfile(): checking second argument, include path with context specified ***
|
H A D | file_variation5-win32.phpt | 23 echo "file() on a path containing .. and .\n"; 26 echo "\nfile() on a path containing .. with invalid directories\n"; 29 echo "\nfile() on a relative path from a different working directory\n"; 40 file() on a path containing .. and . 52 file() on a path containing .. with invalid directories 64 file() on a relative path from a different working directory
|
H A D | fnmatch_variation.phpt | 187 Warning: fnmatch() expects parameter 1 to be a valid path, string given in %s on line %d 191 Warning: fnmatch() expects parameter 1 to be a valid path, string given in %s on line %d 267 Warning: fnmatch() expects parameter 2 to be a valid path, string given in %s on line %d 271 Warning: fnmatch() expects parameter 2 to be a valid path, string given in %s on line %d 277 Warning: fnmatch() expects parameter 1 to be a valid path, string given in %s on line %d 280 Warning: fnmatch() expects parameter 1 to be a valid path, string given in %s on line %d 283 Warning: fnmatch() expects parameter 1 to be a valid path, string given in %s on line %d 286 Warning: fnmatch() expects parameter 1 to be a valid path, string given in %s on line %d 289 Warning: fnmatch() expects parameter 1 to be a valid path, string given in %s on line %d 292 Warning: fnmatch() expects parameter 1 to be a valid path, string given in %s on line %d [all …]
|
H A D | realpath_variation2.phpt | 12 /* Prototype : string realpath(string path) 13 * Description: Return the resolved path 32 foreach($paths as $path) { 33 echo "\n--$path--\n"; 34 var_dump( realpath($path) );
|
H A D | rename_variation13-win32.phpt | 33 /* prefix with path separator of a non existing directory*/ 114 Warning: rename() expects parameter 2 to be a valid path, string given in %srename_variation13-win3… 117 Warning: file_exists() expects parameter 1 to be a valid path, string given in %srename_variation13… 119 Warning: rename() expects parameter 1 to be a valid path, string given in %srename_variation13-win3… 123 Warning: rename() expects parameter 2 to be a valid path, array given in %srename_variation13-win32… 126 Warning: file_exists() expects parameter 1 to be a valid path, array given in %srename_variation13-… 128 Warning: rename() expects parameter 1 to be a valid path, array given in %srename_variation13-win32… 132 Warning: rename(%safile.tmp,/no/such/file/dir): The system cannot find the path specified. (code: 3… 135 Warning: rename(/no/such/file/dir,%safile.tmp): The system cannot find the path specified. (code: 3… 139 Warning: rename(%safile.tmp,php/php): The system cannot find the path specified. (code: 3) in %sren… [all …]
|
H A D | fseek_dir_basic.phpt | 9 $path = dirname(__FILE__) . '/fseek_dir_basic'; 10 mkdir($path); 11 create_files($path, 3); 14 var_dump($dh = opendir($path)); 38 delete_files($path, 3); 40 var_dump(rmdir($path));
|
H A D | file_variation5.phpt | 23 echo "file() on a path containing .. and .\n"; 26 echo "\nfile() on a path containing .. with invalid directories\n"; 35 echo "\nfile() on a relative path from a different working directory\n"; 46 file() on a path containing .. and . 58 file() on a path containing .. with invalid directories 84 file() on a relative path from a different working directory
|
/PHP-5.4/ext/phar/ |
H A D | dirstream.c | 336 if (!resource->scheme || !resource->host || !resource->path) { in phar_wrapper_open_dir() 337 if (resource->host && !resource->path) { in phar_wrapper_open_dir() 343 …r, options TSRMLS_CC, "phar error: invalid url \"%s\", must have at least phar://%s/", path, path); in phar_wrapper_open_dir() 355 internal_file = resource->path + 1; /* strip leading "/" */ in phar_wrapper_open_dir() 484 …if ((e = phar_get_entry_info_dir(phar, resource->path + 1, strlen(resource->path + 1), 2, &error, … in phar_wrapper_mkdir() 502 …if (phar_get_entry_info_dir(phar, resource->path + 1, strlen(resource->path + 1), 0, &error, 1 TSR… in phar_wrapper_mkdir() 523 entry.filename = estrdup(resource->path + 1); in phar_wrapper_mkdir() 530 entry.filename_len = strlen(resource->path + 1); in phar_wrapper_mkdir() 621 path_len = strlen(resource->path+1); in phar_wrapper_rmdir() 642 memcmp(str_key, resource->path+1, path_len) == 0 && in phar_wrapper_rmdir() [all …]
|
/PHP-5.4/main/streams/ |
H A D | php_stream_plain_wrapper.h | 33 PHPAPI php_stream *_php_stream_fopen_with_path(char *filename, char *mode, char *path, char **opene… 34 …php_stream_fopen_with_path(filename, mode, path, opened) _php_stream_fopen_with_path((filename), (… argument 54 PHPAPI FILE * _php_stream_open_wrapper_as_file(char * path, char * mode, int options, char **opened… 55 #define php_stream_open_wrapper_as_file(path, mode, options, opened_path) _php_stream_open_wrapper_… argument
|
H A D | memory.c | 615 path += 5; in php_stream_url_wrap_rfc2397() 616 dlen = strlen(path); in php_stream_url_wrap_rfc2397() 618 if (dlen >= 2 && path[0] == '/' && path[1] == '/') { in php_stream_url_wrap_rfc2397() 620 path += 2; in php_stream_url_wrap_rfc2397() 628 if (comma != path) { in php_stream_url_wrap_rfc2397() 630 mlen = comma - path; in php_stream_url_wrap_rfc2397() 646 plen = semi - path; in php_stream_url_wrap_rfc2397() 649 path += plen; in php_stream_url_wrap_rfc2397() 657 path++; in php_stream_url_wrap_rfc2397() 674 plen = sep - path; in php_stream_url_wrap_rfc2397() [all …]
|
/PHP-5.4/tests/security/ |
H A D | open_basedir_disk_free_space.phpt | 28 …pen_basedir restriction in effect. File(../bad) is not within the allowed path(s): (.) in %s on li… 31 …dir restriction in effect. File(../bad/bad.txt) is not within the allowed path(s): (.) in %s on li… 34 …): open_basedir restriction in effect. File(..) is not within the allowed path(s): (.) in %s on li… 37 …: open_basedir restriction in effect. File(../) is not within the allowed path(s): (.) in %s on li… 40 …(): open_basedir restriction in effect. File(/) is not within the allowed path(s): (.) in %s on li… 43 …n_basedir restriction in effect. File(../bad/.) is not within the allowed path(s): (.) in %s on li… 46 …estriction in effect. File(%s/test/bad/bad.txt) is not within the allowed path(s): (.) in %s on li… 49 …ion in effect. File(%s/test/bad/../bad/bad.txt) is not within the allowed path(s): (.) in %s on li…
|
H A D | open_basedir_realpath.phpt | 29 …asedir restriction in effect. File(%s\test\bad) is not within the allowed path(s): (.) in %s on li… 32 …estriction in effect. File(%s\test\bad\bad.txt) is not within the allowed path(s): (.) in %s on li… 35 …en_basedir restriction in effect. File(%s\test) is not within the allowed path(s): (.) in %s on li… 38 …en_basedir restriction in effect. File(%s\test) is not within the allowed path(s): (.) in %s on li… 41 Warning: realpath(): open_basedir restriction in effect. File(%s\) is not within the allowed path(s… 44 …asedir restriction in effect. File(%s\test\bad) is not within the allowed path(s): (.) in %s on li… 47 …estriction in effect. File(%s\test\bad\bad.txt) is not within the allowed path(s): (.) in %s on li… 50 …estriction in effect. File(%s\test\bad\bad.txt) is not within the allowed path(s): (.) in %s on li… 53 …en_basedir restriction in effect. File(%s\test) is not within the allowed path(s): (.) in %s on li…
|
H A D | open_basedir_dir.phpt | 31 Warning: dir(): open_basedir restriction in effect. File(../bad) is not within the allowed path(s):… 36 …dir restriction in effect. File(../bad/bad.txt) is not within the allowed path(s): (.) in %s on li… 41 Warning: dir(): open_basedir restriction in effect. File(..) is not within the allowed path(s): (.)… 46 Warning: dir(): open_basedir restriction in effect. File(../) is not within the allowed path(s): (.… 51 Warning: dir(): open_basedir restriction in effect. File(/) is not within the allowed path(s): (.) … 56 Warning: dir(): open_basedir restriction in effect. File(../bad/.) is not within the allowed path(s… 61 …estriction in effect. File(%s/test/bad/bad.txt) is not within the allowed path(s): (.) in %s on li… 66 …ion in effect. File(%s/test/bad/../bad/bad.txt) is not within the allowed path(s): (.) in %s on li… 71 ["path"]=> 77 ["path"]=> [all …]
|
H A D | open_basedir_is_executable.phpt | 32 …pen_basedir restriction in effect. File(../bad) is not within the allowed path(s): (.) in %s on li… 35 …dir restriction in effect. File(../bad/bad.txt) is not within the allowed path(s): (.) in %s on li… 38 …): open_basedir restriction in effect. File(..) is not within the allowed path(s): (.) in %s on li… 41 …: open_basedir restriction in effect. File(../) is not within the allowed path(s): (.) in %s on li… 44 …(): open_basedir restriction in effect. File(/) is not within the allowed path(s): (.) in %s on li… 47 …n_basedir restriction in effect. File(../bad/.) is not within the allowed path(s): (.) in %s on li… 50 …estriction in effect. File(%s/test/bad/bad.txt) is not within the allowed path(s): (.) in %s on li… 53 …ion in effect. File(%s/test/bad/../bad/bad.txt) is not within the allowed path(s): (.) in %s on li…
|
H A D | open_basedir_chdir.phpt | 32 Warning: chdir(): open_basedir restriction in effect. File(../bad) is not within the allowed path(s… 35 Warning: chdir(): open_basedir restriction in effect. File(..) is not within the allowed path(s): (… 38 Warning: chdir(): open_basedir restriction in effect. File(../) is not within the allowed path(s): … 41 Warning: chdir(): open_basedir restriction in effect. File(/) is not within the allowed path(s): (.… 44 Warning: chdir(): open_basedir restriction in effect. File(../bad/.) is not within the allowed path… 47 Warning: chdir(): open_basedir restriction in effect. File(./../.) is not within the allowed path(s…
|
H A D | open_basedir_touch.phpt | 41 Warning: touch(): open_basedir restriction in effect. File(../bad) is not within the allowed path(s… 44 …dir restriction in effect. File(../bad/bad.txt) is not within the allowed path(s): (.) in %s on li… 47 Warning: touch(): open_basedir restriction in effect. File(..) is not within the allowed path(s): (… 50 Warning: touch(): open_basedir restriction in effect. File(../) is not within the allowed path(s): … 53 Warning: touch(): open_basedir restriction in effect. File(/) is not within the allowed path(s): (.… 56 Warning: touch(): open_basedir restriction in effect. File(../bad/.) is not within the allowed path… 59 …r restriction in effect. File(../bad/./bad.txt) is not within the allowed path(s): (.) in %s on li… 62 Warning: touch(): open_basedir restriction in effect. File(./../.) is not within the allowed path(s…
|
/PHP-5.4/ext/standard/tests/dir/ |
H A D | opendir_variation1-win32.phpt | 24 $path = dirname(__FILE__) . "/opendir_variation1"; 25 mkdir($path); 34 var $path; 35 function __construct($path) { 36 $this->path = $path; 39 return $this->path; 45 $path 51 // unexpected values to be passed to $path argument 83 /*19*/ "$path", 88 /*22*/ new classA($path), [all …]
|
H A D | opendir_error1.phpt | 5 /* Prototype : mixed opendir(string $path[, resource $context]) 22 $path = dirname(__FILE__) . "/opendir_error"; 23 mkdir($path); 27 var_dump( opendir($path, $context, $extra_arg) ); 32 $path = dirname(__FILE__) . "/opendir_error"; 33 rmdir($path);
|
H A D | readdir_variation2.phpt | 16 $path = dirname(__FILE__) . '/readdir_variation2'; 17 mkdir($path); 18 $dir_handle = opendir($path); 39 $path = dirname(__FILE__) . '/readdir_variation2'; 40 rmdir($path);
|
H A D | readdir_error.phpt | 20 $path = dirname(__FILE__) . "/readdir_error"; 21 mkdir($path); 22 $dir_handle = opendir($path); 33 $path = dirname(__FILE__) . "/readdir_error"; 34 rmdir($path);
|
/PHP-5.4/ext/session/tests/ |
H A D | session_get_cookie_params_basic.phpt | 25 var_dump(session_set_cookie_params(3600, "/path", "blah", FALSE, FALSE)); 38 ["path"]=> 51 ["path"]=> 52 string(5) "/path" 64 ["path"]=>
|
/PHP-5.4/ext/standard/tests/strings/ |
H A D | dirname_variation.phpt | 5 /* Prototype: string dirname ( string $path ); 6 Description: Returns directory name component of path. 30 /* path containing numeric string */ 42 /* path as spaces */ 46 /* empty path */ 64 echo "*** Testing possible variations in path ***\n"; 70 \*\*\* Testing possible variations in path \*\*\*
|
/PHP-5.4/ext/standard/tests/file/windows_acls/ |
H A D | bug44859_3.phpt | 20 $path = __DIR__; 23 $path = __DIR__ . '/' . $file; 25 if (is_executable($path) == $exp) { 28 var_dump(is_executable($path), $exp);
|
/PHP-5.4/main/ |
H A D | fopen_wrappers.c | 160 path_len = strlen(path); 303 if (strlen(path) > (MAXPATHLEN - 1)) { 349 fp = VCWD_FOPEN(path, mode); 501 !path || 502 !*path) { 510 ptr = path; 635 || (!path || (path && !*path)) 647 path_length = strlen(path); 652 pathbuf = estrdup(path); 655 memcpy(pathbuf, path, path_length); [all …]
|