/PHP-7.4/main/ |
H A D | fopen_wrappers.c | 364 zend_string *resolved_path = NULL; local 433 if (!resolved_path) { 449 zend_string_release_ex(resolved_path, 0); 484 char resolved_path[MAXPATHLEN]; local 500 if (tsrm_realpath(actual_path, resolved_path)) { 501 return zend_string_init(resolved_path, strlen(resolved_path), 0); 520 if (tsrm_realpath(filename, resolved_path)) { 521 return zend_string_init(resolved_path, strlen(resolved_path), 0); 580 if (tsrm_realpath(actual_path, resolved_path)) { 581 return zend_string_init(resolved_path, strlen(resolved_path), 0); [all …]
|
/PHP-7.4/Zend/ |
H A D | zend_virtual_cwd.c | 1095 resolved_path[0] = path[0]; in virtual_file_ex() 1096 resolved_path[1] = ':'; in virtual_file_ex() 1116 resolved_path[0] = DEFAULT_SLASH; in virtual_file_ex() 1117 resolved_path[1] = DEFAULT_SLASH; in virtual_file_ex() 1120 if (resolved_path[start] == 0) { in virtual_file_ex() 1123 resolved_path[start] = toupper(resolved_path[start]); in virtual_file_ex() 1128 if (resolved_path[start] == 0) { in virtual_file_ex() 1131 resolved_path[start] = toupper(resolved_path[start]); in virtual_file_ex() 1137 resolved_path[0] = toupper(resolved_path[0]); in virtual_file_ex() 1138 resolved_path[2] = DEFAULT_SLASH; in virtual_file_ex() [all …]
|
H A D | zend_execute.c | 4259 zend_string *resolved_path; in zend_include_or_eval() local 4261 resolved_path = zend_resolve_path(Z_STRVAL_P(inc_filename), Z_STRLEN_P(inc_filename)); in zend_include_or_eval() 4262 if (EXPECTED(resolved_path)) { in zend_include_or_eval() 4263 if (zend_hash_exists(&EG(included_files), resolved_path)) { in zend_include_or_eval() 4275 resolved_path = zend_string_copy(Z_STR_P(inc_filename)); in zend_include_or_eval() 4278 if (SUCCESS == zend_stream_open(ZSTR_VAL(resolved_path), &file_handle)) { in zend_include_or_eval() 4281 file_handle.opened_path = zend_string_copy(resolved_path); in zend_include_or_eval() 4287 zend_string_release_ex(resolved_path, 0); in zend_include_or_eval() 4303 zend_string_release_ex(resolved_path, 0); in zend_include_or_eval()
|
/PHP-7.4/ext/xmlreader/ |
H A D | php_xmlreader.c | 262 if (!VCWD_REALPATH(source, resolved_path) && !expand_filepath(source, resolved_path)) { in _xmlreader_get_valid_file_path() 266 file_dest = resolved_path; in _xmlreader_get_valid_file_path() 284 char resolved_path[MAXPATHLEN + 1]; in _xmlreader_get_relaxNG() local 854 char resolved_path[MAXPATHLEN + 1]; in PHP_METHOD() local 1041 char *directory=NULL, resolved_path[MAXPATHLEN]; in PHP_METHOD() local 1073 directory = VCWD_GETCWD(resolved_path, MAXPATHLEN); in PHP_METHOD() 1075 directory = VCWD_GETWD(resolved_path); in PHP_METHOD() 1078 resolved_path_len = strlen(resolved_path); in PHP_METHOD() 1079 if (resolved_path[resolved_path_len - 1] != DEFAULT_SLASH) { in PHP_METHOD() 1080 resolved_path[resolved_path_len] = DEFAULT_SLASH; in PHP_METHOD() [all …]
|
/PHP-7.4/ext/libxml/ |
H A D | libxml.c | 300 char *resolved_path; in php_libxml_streams_IO_open_wrapper() local 314 resolved_path = xmlURIUnescapeString(filename, 0, NULL); in php_libxml_streams_IO_open_wrapper() 323 if (strncasecmp(resolved_path, "file:/", pre_len) == 0 in php_libxml_streams_IO_open_wrapper() 324 && '/' != resolved_path[pre_len]) { in php_libxml_streams_IO_open_wrapper() 325 xmlChar *tmp = xmlStrdup(resolved_path + pre_len); in php_libxml_streams_IO_open_wrapper() 326 xmlFree(resolved_path); in php_libxml_streams_IO_open_wrapper() 327 resolved_path = tmp; in php_libxml_streams_IO_open_wrapper() 332 resolved_path = (char *)filename; in php_libxml_streams_IO_open_wrapper() 339 if (resolved_path == NULL) { in php_libxml_streams_IO_open_wrapper() 353 xmlFree(resolved_path); in php_libxml_streams_IO_open_wrapper() [all …]
|
/PHP-7.4/ext/dom/ |
H A D | document.c | 1359 if (!VCWD_REALPATH(source, resolved_path) && !expand_filepath(source, resolved_path)) { in _dom_get_valid_file_path() 1363 file_dest = resolved_path; in _dom_get_valid_file_path() 1382 char *directory=NULL, resolved_path[MAXPATHLEN]; in dom_document_parser() local 1423 directory = VCWD_GETCWD(resolved_path, MAXPATHLEN); in dom_document_parser() 1425 directory = VCWD_GETWD(resolved_path); in dom_document_parser() 1431 resolved_path_len = strlen(resolved_path); in dom_document_parser() 1432 if (resolved_path[resolved_path_len - 1] != DEFAULT_SLASH) { in dom_document_parser() 1433 resolved_path[resolved_path_len] = DEFAULT_SLASH; in dom_document_parser() 1434 resolved_path[++resolved_path_len] = '\0'; in dom_document_parser() 1832 char resolved_path[MAXPATHLEN + 1]; in _dom_document_schema_validate() local [all …]
|
/PHP-7.4/main/streams/ |
H A D | streams.c | 2085 zend_string *resolved_path = NULL; local 2099 if (resolved_path) { 2100 path = ZSTR_VAL(resolved_path); 2115 if (resolved_path) { 2116 zend_string_release_ex(resolved_path, 0); 2147 *opened_path = resolved_path; 2148 resolved_path = NULL; 2168 if (resolved_path) { 2177 if (resolved_path) { 2218 if (resolved_path) { [all …]
|
/PHP-7.4/ext/zip/ |
H A D | php_zip.c | 285 char resolved_path[MAXPATHLEN]; in php_zip_add_file() local 293 if (!expand_filepath(filename, resolved_path)) { in php_zip_add_file() 297 php_stat(resolved_path, strlen(resolved_path), FS_EXISTS, &exists_flag); in php_zip_add_file() 1152 char resolved_path[MAXPATHLEN + 1]; in PHP_NAMED_FUNCTION() local 1176 rsrc_int->za = zip_open(resolved_path, 0, &err); in PHP_NAMED_FUNCTION() 1439 char *resolved_path; local 1468 efree(resolved_path); 1494 intern = zip_open(resolved_path, flags, &err); 1496 efree(resolved_path); 1499 ze_obj->filename = resolved_path; [all …]
|
/PHP-7.4/ext/fileinfo/ |
H A D | fileinfo.c | 294 char resolved_path[MAXPATHLEN]; in PHP_FUNCTION() 327 if (!expand_filepath_with_mode(file, resolved_path, NULL, 0, CWD_EXPAND)) { in PHP_FUNCTION() 336 file = resolved_path; in PHP_FUNCTION()
|
/PHP-7.4/ext/xmlwriter/ |
H A D | php_xmlwriter.c | 568 static char *_xmlwriter_get_valid_file_path(char *source, char *resolved_path, int resolved_path_le… in _xmlwriter_get_valid_file_path() argument 611 if (!VCWD_REALPATH(source, resolved_path) && !expand_filepath(source, resolved_path)) { in _xmlwriter_get_valid_file_path() 627 file_dest = resolved_path; in _xmlwriter_get_valid_file_path() 1661 char resolved_path[MAXPATHLEN + 1]; in PHP_FUNCTION() local 1680 valid_file = _xmlwriter_get_valid_file_path(source, resolved_path, MAXPATHLEN); in PHP_FUNCTION()
|
/PHP-7.4/ext/opcache/ |
H A D | ZendAccelerator.c | 2272 zend_string *resolved_path; in persistent_zend_resolve_path() local 2297 resolved_path = accelerator_orig_zend_resolve_path(filename, filename_len); in persistent_zend_resolve_path() 2299 if (resolved_path) { in persistent_zend_resolve_path() 2319 return resolved_path; in persistent_zend_resolve_path() 2326 return resolved_path; in persistent_zend_resolve_path() 3995 if (resolved_path) { in preload_remove_empty_includes() 3997 zend_string_release(resolved_path); in preload_remove_empty_includes() 4035 if (resolved_path) { in preload_remove_empty_includes() 4036 zend_persistent_script *incl = zend_hash_find_ptr(preload_scripts, resolved_path); in preload_remove_empty_includes() 4043 ZVAL_STR_COPY(RT_CONSTANT(opline, opline->op1), resolved_path); in preload_remove_empty_includes() [all …]
|
/PHP-7.4/ext/standard/ |
H A D | streamsfuncs.c | 1549 zend_string *resolved_path; in PHP_FUNCTION() local 1555 resolved_path = zend_resolve_path(filename, filename_len); in PHP_FUNCTION() 1557 if (resolved_path) { in PHP_FUNCTION() 1558 RETURN_STR(resolved_path); in PHP_FUNCTION()
|
/PHP-7.4/sapi/litespeed/ |
H A D | lsapilib.c | 3872 char resolved_path[PATH_MAX+1]; in lsapi_check_path() local 3890 if (realpath(p, resolved_path) == NULL in lsapi_check_path() 3893 if (strncmp(resolved_path, "/etc/", 5) == 0) in lsapi_check_path()
|