/php-src/ext/phar/ |
H A D | stream.c | 90 resource->path = zend_string_init(entry, entry_len, 0); in phar_parse_url() 101 fprintf(stderr, "Path: %s\n", ZSTR_VAL(resource->path)); in phar_parse_url() 178 if (!resource->scheme || !resource->host || !resource->path) { in phar_wrapper_open_url() 194 internal_file = estrndup(ZSTR_VAL(resource->path) + 1, ZSTR_LEN(resource->path) - 1); in phar_wrapper_open_url() 708 internal_file = estrndup(ZSTR_VAL(resource->path) + 1, ZSTR_LEN(resource->path) - 1); in phar_wrapper_unlink() 709 internal_file_len = ZSTR_LEN(resource->path) - 1; in phar_wrapper_unlink() 842 …h_str_find_ptr(&(phar->manifest), ZSTR_VAL(resource_from->path)+1, ZSTR_LEN(resource_from->path)-1… in phar_wrapper_rename() 865 entry->filename = estrndup(ZSTR_VAL(resource_to->path)+1, ZSTR_LEN(resource_to->path)-1); in phar_wrapper_rename() 879 …str_exists(&(phar->virtual_dirs), ZSTR_VAL(resource_from->path)+1, ZSTR_LEN(resource_from->path)-1… in phar_wrapper_rename() 895 uint32_t from_len = ZSTR_LEN(resource_from->path) - 1; in phar_wrapper_rename() [all …]
|
/php-src/tests/security/ |
H A D | open_basedir_mkdir.phpt | 33 …asedir restriction in effect. File(../bad/blah) is not within the allowed path(s): (.) in %s on li… 36 Warning: mkdir(): open_basedir restriction in effect. File(../blah) is not within the allowed path(… 39 …edir restriction in effect. File(../bad/./blah) is not within the allowed path(s): (.) in %s on li… 42 …asedir restriction in effect. File(./.././blah) is not within the allowed path(s): (.) in %s on li…
|
H A D | open_basedir_parse_ini_file.phpt | 40 …basedir restriction in effect. File(%stest\bad) is not within the allowed path(s): (.) in %sopen_b… 45 …restriction in effect. File(%stest\bad\bad.txt) is not within the allowed path(s): (.) in %sopen_b… 50 …pen_basedir restriction in effect. File(%stest) is not within the allowed path(s): (.) in %sopen_b… 55 …pen_basedir restriction in effect. File(%stest) is not within the allowed path(s): (.) in %sopen_b… 60 …basedir restriction in effect. File(%stest\bad) is not within the allowed path(s): (.) in %sopen_b… 65 …restriction in effect. File(%stest\bad\bad.txt) is not within the allowed path(s): (.) in %sopen_b… 70 …pen_basedir restriction in effect. File(%stest) is not within the allowed path(s): (.) in %sopen_b…
|
H A D | open_basedir_fopen.phpt | 41 Warning: fopen(): open_basedir restriction in effect. File(../bad) is not within the allowed path(s… 46 …dir restriction in effect. File(../bad/bad.txt) is not within the allowed path(s): (.) in %s on li… 51 Warning: fopen(): open_basedir restriction in effect. File(..) is not within the allowed path(s): (… 56 Warning: fopen(): open_basedir restriction in effect. File(../) is not within the allowed path(s): … 61 Warning: fopen(): open_basedir restriction in effect. File(/) is not within the allowed path(s): (.… 66 Warning: fopen(): open_basedir restriction in effect. File(../bad/.) is not within the allowed path… 71 …r restriction in effect. File(../bad/./bad.txt) is not within the allowed path(s): (.) in %s on li… 76 Warning: fopen(): open_basedir restriction in effect. File(./../.) is not within the allowed path(s…
|
H A D | open_basedir_scandir.phpt | 30 Warning: scandir(): open_basedir restriction in effect. File(../bad) is not within the allowed path… 37 …dir restriction in effect. File(../bad/bad.txt) is not within the allowed path(s): (.) in %s on li… 44 Warning: scandir(): open_basedir restriction in effect. File(..) is not within the allowed path(s):… 51 Warning: scandir(): open_basedir restriction in effect. File(../) is not within the allowed path(s)… 58 Warning: scandir(): open_basedir restriction in effect. File(/) is not within the allowed path(s): … 65 …n_basedir restriction in effect. File(../bad/.) is not within the allowed path(s): (.) in %s on li… 72 …estriction in effect. File(%s/test/bad/bad.txt) is not within the allowed path(s): (.) in %s on li… 79 …ion in effect. File(%s/test/bad/../bad/bad.txt) is not within the allowed path(s): (.) in %s on li…
|
/php-src/ext/standard/tests/file/windows_mb_path/ |
H A D | test_cp1250_to_utf8_4.phpt | 2 Test mkdir/rmdir UTF-8 path with cp1250 specific symbols 25 $path = $prefix . DIRECTORY_SEPARATOR . "{$item}42"; 27 $subpath = $path . DIRECTORY_SEPARATOR . "{$item}4"; 30 var_dump(file_exists($path));
|
H A D | test_cp1251_zend_multibyte_1.phpt | 30 $path = $prefix . DIRECTORY_SEPARATOR . "{$item}3"; 32 $subpath = $path . DIRECTORY_SEPARATOR . "{$item}4"; 35 var_dump(file_exists($path));
|
/php-src/ext/standard/tests/file/ |
H A D | basename-win32.phpt | 86 /* path with spaces */ 97 foreach ($path_arrays as $path) { 99 if( 1 == count($path) ) { // no suffix provided 100 var_dump( basename($path[0]) ); 101 } else { // path as well as suffix provided, 102 var_dump( basename($path[0], $path[1]) ); 110 echo "\n*** Testing possible variations in path and suffix ***\n"; 193 *** Testing possible variations in path and suffix ***
|
H A D | readfile_variation6.phpt | 2 Test readfile() function : variation - test include path 31 fwrite($h, "File in include path"); 41 File in include path
|
H A D | rename_variation13-win32.phpt | 25 /* prefix with path separator of a non existing directory*/ 77 …r(Invalid argument|(The parameter is incorrect|The system cannot find the path specified) \(code: … 80 …r(Invalid argument|(The parameter is incorrect|The system cannot find the path specified) \(code: … 84 …r(Invalid argument|(The parameter is incorrect|The system cannot find the path specified) \(code: … 87 …r(Invalid argument|(The parameter is incorrect|The system cannot find the path specified) \(code: … 98 Warning: rename(%safile.tmp,/no/such/file/dir): The system cannot find the path specified (code: 3)… 101 Warning: rename(/no/such/file/dir,%safile.tmp): The system cannot find the path specified (code: 3)… 105 Warning: rename(%safile.tmp,php/php): The system cannot find the path specified (code: 3) in %srena… 108 Warning: rename(php/php,%safile.tmp): The system cannot find the path specified (code: 3) in %srena…
|
H A D | file_get_contents_variation1.phpt | 2 Test file_get_contents() function : variation - include path testing 31 fwrite($h, "File in include path"); 47 File in include path
|
/php-src/sapi/litespeed/ |
H A D | lsapi_main.c | 544 char *path, *server_name; in sapi_lsapi_activate() local 578 path[path_len] = 0; in sapi_lsapi_activate() 583 efree(path); in sapi_lsapi_activate() 840 int len = (int)strlen(path); in pathlen_without_trailing_slash() 904 char *path; member 925 if (!ctx->path || !*ctx->path) { in lsapi_activate_user_ini_basic_checks() 942 char *path; in lsapi_activate_user_ini_mk_path() local 947 ctx->path_len = strlen(ctx->path); in lsapi_activate_user_ini_mk_path() 948 path = ctx->path = estrndup(SG(request_info).path_translated, ctx->path_len); in lsapi_activate_user_ini_mk_path() 955 efree(path); in lsapi_activate_user_ini_mk_path() [all …]
|
/php-src/ext/zend_test/tests/ |
H A D | zend_test_compile_string.phpt | 13 #!/path/to/php 21 #!/path/to/php 50 #!/path/to/php
|
/php-src/scripts/dev/ |
H A D | find_tested.php | 187 $path = $thisdir->path.$file; 188 if(is_dir($path) == true) { 189 get_phpt_files($path , $phpt_file_count , $all_phpt); 192 $all_phpt[$phpt_file_count] = $path;
|
/php-src/ext/session/tests/ |
H A D | session_set_cookie_params_variation4.phpt | 17 var_dump(session_set_cookie_params(3600, "/path", "blah", FALSE)); 21 var_dump(session_set_cookie_params(3600, "/path", "blah", TRUE)); 25 var_dump(session_set_cookie_params(3600, "/path", "blah", FALSE));
|
H A D | session_set_cookie_params_variation3.phpt | 17 var_dump(session_set_cookie_params(3600, "/path", "blah")); 21 var_dump(session_set_cookie_params(3600, "/path", "guff")); 25 var_dump(session_set_cookie_params(3600, "/path", "foo"));
|
H A D | session_set_cookie_params_variation5.phpt | 17 var_dump(session_set_cookie_params(3600, "/path", "blah", FALSE, FALSE)); 21 var_dump(session_set_cookie_params(3600, "/path", "blah", FALSE, TRUE)); 25 var_dump(session_set_cookie_params(3600, "/path", "blah", FALSE, FALSE));
|
/php-src/ext/standard/ |
H A D | php_fopen_wrappers.h | 22 php_stream *php_stream_url_wrap_http(php_stream_wrapper *wrapper, const char *path, const char *mod… 23 php_stream *php_stream_url_wrap_ftp(php_stream_wrapper *wrapper, const char *path, const char *mode…
|
H A D | http_fopen_wrapper.c | 158 resource = php_url_parse(path); in php_stream_url_wrap_http_ex() 393 smart_str_appends(&req_buf, path); in php_stream_url_wrap_http_ex() 398 if (resource->path && ZSTR_LEN(resource->path)) { in php_stream_url_wrap_http_ex() 522 size_t scratch_len = strlen(path) + 1; in php_stream_url_wrap_http_ex() 860 s = ZSTR_VAL(resource->path); in php_stream_url_wrap_http_ex() 861 if (!ZSTR_LEN(resource->path)) { in php_stream_url_wrap_http_ex() 864 s = ZSTR_VAL(resource->path); in php_stream_url_wrap_http_ex() 870 if (resource->path && in php_stream_url_wrap_http_ex() 871 ZSTR_VAL(resource->path)[0] == '/' && in php_stream_url_wrap_http_ex() 872 ZSTR_VAL(resource->path)[1] == '\0') { in php_stream_url_wrap_http_ex() [all …]
|
/php-src/ext/standard/tests/strings/ |
H A D | basename_basic.phpt | 55 foreach ($path_arrays as $path) { 57 if( 1 == count($path) ) { // no suffix provided 58 var_dump( basename($path[0]) ); 59 } else { // path as well as suffix provided, 60 var_dump( basename($path[0], $path[1]) );
|
/php-src/Zend/tests/ |
H A D | bug78340.phpt | 12 function stream_open($path, $mode, $options, $opened_path) { 13 $this->bytes= self::$files[$path]; 15 $this->ino= crc32($path);
|
/php-src/ext/session/ |
H A D | session.stub.php | 28 function session_save_path(?string $path = null): string|false {} argument 88 function session_set_cookie_params(array|int $lifetime_or_options, ?string $path = null, ?string $d… argument 95 public function open(string $path, string $name): bool; argument 131 public function open(string $path, string $name): bool {} argument
|
/php-src/ext/dba/ |
H A D | dba.c | 265 ZEND_ASSERT(info->path); in dba_close() 267 info->path = NULL; in dba_close() 448 if (zend_string_equals(path, info->path)) { in php_dba_find() 491 zend_string *path; in php_dba_open() local 505 if (ZSTR_LEN(path) == 0) { in php_dba_open() 533 ZSTR_VAL(path), ZSTR_LEN(path), in php_dba_open() 539 ZSTR_VAL(path), ZSTR_LEN(path), in php_dba_open() 741 info->path = php_dba_zend_string_dup_safe(path, persistent); in php_dba_open() 754 if ((other = php_dba_find(info->path)) != NULL) { in php_dba_open() 768 lock_name = ZSTR_VAL(path); in php_dba_open() [all …]
|
/php-src/ext/session/tests/user_session_module/ |
H A D | session_set_save_handler_variation5.phpt | 26 $path = __DIR__ . '/session_set_save_handler_variation5'; 27 @mkdir($path); 28 var_dump(session_save_path($path)); 54 $path = __DIR__ . '/session_set_save_handler_variation5'; 55 rmdir($path);
|
/php-src/sapi/fpm/tests/ |
H A D | bug68423-multi-pool-all-pms.phpt | 15 ping.path = /ping 24 ping.path = /ping 31 ping.path = /ping
|