/PHP-5.4/ext/standard/tests/streams/ |
H A D | stream_get_meta_data_file_variation4.phpt | 2 stream_get_meta_data() with a relative file path 14 echo "\nChange to file's directory and open with a relative path:\n"; 51 Change to file's directory and open with a relative path:
|
/PHP-5.4/tests/run-test/ |
H A D | test007.phpt | 10 function check_dirname($path) { 12 $path1 = str_replace("%",$s,$path); 15 print "dirname($path) == $path3\n";
|
/PHP-5.4/main/streams/ |
H A D | streams.c | 175 char *tmp = estrdup(path); in php_stream_display_wrapper_errors() 1782 protocol = path; 1823 if (localhost == 0 && path[n+3] != '\0' && path[n+3] != '/' && path[n+4] != ':') { 1825 if (localhost == 0 && path[n+3] != '\0' && path[n+3] != '/') { 1929 char *path_to_open = path; 1982 if (!path || !*path) { 1986 path_to_open = path; 2038 if (!path || !*path) { 2044 resolved_path = zend_resolve_path(path, strlen(path) TSRMLS_CC); 2046 path = resolved_path; [all …]
|
/PHP-5.4/ext/standard/ |
H A D | http_fopen_wrapper.c | 149 resource = php_url_parse(path); in php_stream_url_wrap_http_ex() 370 scratch_len = strlen(path) + 29 + protocol_version_len; in php_stream_url_wrap_http_ex() 389 strcat(scratch, path); in php_stream_url_wrap_http_ex() 394 if (resource->path && *resource->path) { in php_stream_url_wrap_http_ex() 395 strlcat(scratch, resource->path, scratch_len); in php_stream_url_wrap_http_ex() 816 if (*(location+1) != '\0' && resource->path) { in php_stream_url_wrap_http_ex() 817 char *s = strrchr(resource->path, '/'); in php_stream_url_wrap_http_ex() 819 s = resource->path; in php_stream_url_wrap_http_ex() 822 s = resource->path = estrdup("/"); in php_stream_url_wrap_http_ex() 828 if (resource->path && *(resource->path) == '/' && *(resource->path + 1) == '\0') { in php_stream_url_wrap_http_ex() [all …]
|
/PHP-5.4/ext/phar/phar/ |
H A D | directorygraphiterator.inc | 19 function __construct($path) 24 new RecursiveDirectoryIterator($path, RecursiveDirectoryIterator::KEY_AS_FILENAME
|
/PHP-5.4/ext/spl/examples/ |
H A D | directorygraphiterator.inc | 19 function __construct($path) 24 new RecursiveDirectoryIterator($path, RecursiveDirectoryIterator::KEY_AS_FILENAME
|
/PHP-5.4/ext/standard/tests/dir/ |
H A D | dir_variation9.phpt | 19 * have valid and invalid relative path. 50 // open the directory with invalid path 80 ["path"]=> 86 ["path"]=> 92 ["path"]=> 98 ["path"]=>
|
/PHP-5.4/ext/standard/tests/strings/ |
H A D | dirname_basic.phpt | 5 /* Prototype: string dirname ( string $path ); 6 Description: Returns directory name component of path. 20 /* path with only files and trailing slashes*/ 31 /* path with file extension and trailing slashes */
|
/PHP-5.4/ext/dba/ |
H A D | dba_qdbm.c | 46 dbf = dpopen(info->path, DP_OREADER, 0); in DBA_OPEN_FUNC() 49 dbf = dpopen(info->path, DP_OWRITER, 0); in DBA_OPEN_FUNC() 52 dbf = dpopen(info->path, DP_OWRITER | DP_OCREAT, 0); in DBA_OPEN_FUNC() 55 dbf = dpopen(info->path, DP_OWRITER | DP_OCREAT | DP_OTRUNC, 0); in DBA_OPEN_FUNC()
|
H A D | dba_tcadb.c | 48 spprintf(&path_string, 0, "%s#mode=r", info->path); in DBA_OPEN_FUNC() 51 spprintf(&path_string, 0, "%s#mode=w", info->path); in DBA_OPEN_FUNC() 54 spprintf(&path_string, 0, "%s#mode=wc", info->path); in DBA_OPEN_FUNC() 57 spprintf(&path_string, 0, "%s#mode=wct", info->path); in DBA_OPEN_FUNC()
|
/PHP-5.4/ext/standard/tests/file/ |
H A D | dirname_basic-win32.phpt | 12 /* Prototype : string dirname(string path) 13 * Description: Returns the directory name component of the path 55 foreach ($paths as $path) { 56 var_dump( dirname($path) );
|
H A D | file_get_contents_variation1.phpt | 2 Test file_get_contents() function : variation - include path testing 39 fwrite($h, "File in include path"); 50 File in include path
|
H A D | pathinfo_variaton.phpt | 5 /* Prototype: mixed pathinfo ( string $path [, int $options] ); 6 Description: Returns information about a file path 80 /* loop through $paths to test each $path in the above array */ 81 foreach($paths as $path) { 83 var_dump( pathinfo($path) ); 84 var_dump( pathinfo($path, PATHINFO_DIRNAME) ); 85 var_dump( pathinfo($path, PATHINFO_BASENAME) ); 86 var_dump( pathinfo($path, PATHINFO_EXTENSION) ); 87 var_dump( pathinfo($path, PATHINFO_FILENAME) );
|
/PHP-5.4/ext/session/tests/ |
H A D | session_save_path_variation5.phpt | 18 * Prototype : string session_save_path([string $path]) 19 * Description : Get and/or set the current session save path 52 Warning: ini_set(): open_basedir restriction in effect. File(%s) is not within the allowed path(s):…
|
/PHP-5.4/ext/standard/tests/general_functions/ |
H A D | include_path.phpt | 23 var_dump(set_include_path(".:/path/to/dir")); 62 string(14) ".:/path/to/dir" 70 Warning: set_include_path() expects parameter 1 to be a valid path, array given in %s on line %d
|
/PHP-5.4/ext/zlib/tests/ |
H A D | compress_zlib_wrapper.phpt | 11 // Relative path 15 // Absolute path
|
/PHP-5.4/ext/phar/tests/ |
H A D | bug46178.phpt | 13 $phar['long/path/name.txt'] = 'hi'; 14 $phar->addEmptyDir('long/path');
|
H A D | phar_createdefaultstub.phpt | 216 if ($path[strlen($path) - 1] == '/') { 217 @mkdir($temp . '/' . $path, 0777); 219 file_put_contents($temp . '/' . $path, self::extractFile($path, $file, $fp)); 220 @chmod($temp . '/' . $path, 0666); 510 if ($path[strlen($path) - 1] == '/') { 511 @mkdir($temp . '/' . $path, 0777); 513 file_put_contents($temp . '/' . $path, self::extractFile($path, $file, $fp)); 514 @chmod($temp . '/' . $path, 0666); 812 if ($path[strlen($path) - 1] == '/') { 813 @mkdir($temp . '/' . $path, 0777); [all …]
|
H A D | phar_setdefaultstub.phpt | 236 if ($path[strlen($path) - 1] == '/') { 237 @mkdir($temp . '/' . $path, 0777); 239 file_put_contents($temp . '/' . $path, self::extractFile($path, $file, $fp)); 240 @chmod($temp . '/' . $path, 0666); 531 if ($path[strlen($path) - 1] == '/') { 532 @mkdir($temp . '/' . $path, 0777); 534 file_put_contents($temp . '/' . $path, self::extractFile($path, $file, $fp)); 535 @chmod($temp . '/' . $path, 0666); 826 if ($path[strlen($path) - 1] == '/') { 827 @mkdir($temp . '/' . $path, 0777); [all …]
|
/PHP-5.4/ext/standard/tests/file/windows_links/ |
H A D | common.inc | 13 // install somewhere that is on %path% or added to %path%
|
/PHP-5.4/scripts/ |
H A D | phpize.in | 88 Invalid source path '$phpdir'. Whitespace is not allowed in source path. 97 Invalid build path '$builddir'. Whitespace is not allowed in build path.
|
/PHP-5.4/ext/phar/ |
H A D | util.c | 181 if (phar_path_check(&path, &path_len, &err) > pcr_is_ok) { in phar_mount_entry() 193 entry.filename = estrndup(path, path_len); in phar_mount_entry() 260 char *path, *fname, *arch, *entry, *ret, *test; in phar_find_in_include_path() local 326 efree(path); in phar_find_in_include_path() 350 char *ptr, *end, *path = PG(include_path); in phar_find_in_include_path() 406 if (*filename == '.' || IS_ABSOLUTE_PATH(filename, filename_len) || !path || !*path) { in phar_find_in_include_path() 422 ptr = (char *) path; in phar_find_in_include_path() 745 phar_unixify_path_separators(path, path_len); in phar_get_or_create_entry_data() 804 phar_add_virtual_dirs(phar, path, path_len TSRMLS_CC); in phar_get_or_create_entry_data() 809 etemp.filename = estrndup(path, path_len); in phar_get_or_create_entry_data() [all …]
|
/PHP-5.4/tests/security/ |
H A D | open_basedir_error_log.phpt | 34 …estriction in effect. File(%s/test/bad/bad.txt) is not within the allowed path(s): (.) in %s on li… 37 …ir restriction in effect. File(%s/test/bad.txt) is not within the allowed path(s): (.) in %s on li… 40 …basedir restriction in effect. File(%s/bad.txt) is not within the allowed path(s): (.) in %s on li…
|
/PHP-5.4/sapi/fpm/fpm/ |
H A D | fpm_main.c | 206 #define TRANSLATE_SLASHES(path) \ argument 208 char *tmp = path; \ 215 #define TRANSLATE_SLASHES(path) argument 723 path = real_path; 729 s2 = path; 732 s1 = path; 796 path = emalloc(path_len + 2); 804 path[path_len] = 0; 830 efree(path); 955 if (!path) { [all …]
|
/PHP-5.4/ext/mbstring/ucgendat/ |
H A D | ucgendat.c | 1303 char path[BUFSIZ]; in write_cdata() local 1316 snprintf(path, sizeof path, "%s" LDAP_DIRSEP "uctable.h", opath); in write_cdata() 1317 if ((out = fopen(path, "w")) == 0) in write_cdata() 1323 snprintf(path, sizeof path, "%s" LDAP_DIRSEP "ctype.dat", opath); in write_cdata() 1324 if ((out = fopen(path, "wb")) == 0) in write_cdata() 1474 snprintf(path, sizeof path, "%s" LDAP_DIRSEP "case.dat", opath); in write_cdata() 1553 snprintf(path, sizeof path, "%s" LDAP_DIRSEP "comp.dat", opath); in write_cdata() 1629 snprintf(path, sizeof path, "%s" LDAP_DIRSEP "decomp.dat", opath); in write_cdata() 1722 snprintf(path, sizeof path, "%s" LDAP_DIRSEP "kdecomp.dat", opath); in write_cdata() 1802 snprintf(path, sizeof path, "%s" LDAP_DIRSEP "cmbcl.dat", opath); in write_cdata() [all …]
|