/php-src/Zend/ |
H A D | zend_virtual_cwd.c | 1010 char resolved_path[MAXPATHLEN]; in virtual_file_ex() local 1088 resolved_path[0] = path[0]; in virtual_file_ex() 1089 resolved_path[1] = ':'; in virtual_file_ex() 1109 resolved_path[0] = DEFAULT_SLASH; in virtual_file_ex() 1110 resolved_path[1] = DEFAULT_SLASH; in virtual_file_ex() 1113 if (resolved_path[start] == 0) { in virtual_file_ex() 1116 resolved_path[start] = toupper(resolved_path[start]); in virtual_file_ex() 1124 resolved_path[start] = toupper(resolved_path[start]); in virtual_file_ex() 1130 resolved_path[0] = toupper(resolved_path[0]); in virtual_file_ex() 1133 resolved_path[3] = '\0'; in virtual_file_ex() [all …]
|
H A D | zend_execute.c | 5126 zend_string *resolved_path; in zend_include_or_eval() local 5128 resolved_path = zend_resolve_path(inc_filename); in zend_include_or_eval() 5129 if (EXPECTED(resolved_path)) { in zend_include_or_eval() 5130 if (zend_hash_exists(&EG(included_files), resolved_path)) { in zend_include_or_eval() 5132 zend_string_release_ex(resolved_path, 0); in zend_include_or_eval() 5144 resolved_path = zend_string_copy(inc_filename); in zend_include_or_eval() 5147 zend_stream_init_filename_ex(&file_handle, resolved_path); in zend_include_or_eval() 5151 file_handle.opened_path = zend_string_copy(resolved_path); in zend_include_or_eval() 5166 zend_string_release_ex(resolved_path, 0); in zend_include_or_eval()
|
/php-src/ext/xmlreader/ |
H A D | php_xmlreader.c | 285 if (!VCWD_REALPATH(source, resolved_path) && !expand_filepath(source, resolved_path)) { in _xmlreader_get_valid_file_path() 289 file_dest = resolved_path; in _xmlreader_get_valid_file_path() 307 char resolved_path[MAXPATHLEN + 1]; in _xmlreader_get_relaxNG() local 894 char resolved_path[MAXPATHLEN + 1]; in xml_reader_from_uri() local 1165 char *directory=NULL, resolved_path[MAXPATHLEN + 1]; in xml_reader_from_string() local 1195 directory = VCWD_GETCWD(resolved_path, MAXPATHLEN); in xml_reader_from_string() 1197 directory = VCWD_GETWD(resolved_path); in xml_reader_from_string() 1200 resolved_path_len = strlen(resolved_path); in xml_reader_from_string() 1201 if (resolved_path[resolved_path_len - 1] != DEFAULT_SLASH) { in xml_reader_from_string() 1202 resolved_path[resolved_path_len] = DEFAULT_SLASH; in xml_reader_from_string() [all …]
|
/php-src/main/ |
H A D | fopen_wrappers.c | 364 zend_string *resolved_path = NULL; local 447 resolved_path = zend_resolve_path(filename); 450 if (!resolved_path) { 464 zend_string_release_ex(resolved_path, 0); 502 zend_string *resolved_path; local 518 if ((resolved_path = tsrm_realpath_str(actual_path))) { 519 return resolved_path; 594 if ((resolved_path = tsrm_realpath_str(actual_path))) { 595 return resolved_path;
|
/php-src/ext/libxml/ |
H A D | libxml.c | 412 char *resolved_path; in php_libxml_streams_IO_open_wrapper() local 424 resolved_path = xmlURIUnescapeString(filename, 0, NULL); in php_libxml_streams_IO_open_wrapper() 434 if (strncasecmp(resolved_path, "file:/", pre_len) == 0 in php_libxml_streams_IO_open_wrapper() 435 && '/' != resolved_path[pre_len]) { in php_libxml_streams_IO_open_wrapper() 436 xmlChar *tmp = xmlStrdup(resolved_path + pre_len); in php_libxml_streams_IO_open_wrapper() 437 xmlFree(resolved_path); in php_libxml_streams_IO_open_wrapper() 438 resolved_path = tmp; in php_libxml_streams_IO_open_wrapper() 443 resolved_path = (char *)filename; in php_libxml_streams_IO_open_wrapper() 450 if (resolved_path == NULL) { in php_libxml_streams_IO_open_wrapper() 464 xmlFree(resolved_path); in php_libxml_streams_IO_open_wrapper() [all …]
|
/php-src/ext/xmlwriter/ |
H A D | php_xmlwriter.c | 107 static char *_xmlwriter_get_valid_file_path(char *source, char *resolved_path, int resolved_path_le… in _xmlwriter_get_valid_file_path() argument 153 if (!VCWD_REALPATH(source, resolved_path) && !expand_filepath(source, resolved_path)) { in _xmlwriter_get_valid_file_path() 169 file_dest = resolved_path; in _xmlwriter_get_valid_file_path() 804 char resolved_path[MAXPATHLEN + 1]; in PHP_FUNCTION() local 823 valid_file = _xmlwriter_get_valid_file_path(source, resolved_path, MAXPATHLEN); in PHP_FUNCTION() 853 char resolved_path[MAXPATHLEN + 1]; in PHP_METHOD() local 864 const char *valid_file = _xmlwriter_get_valid_file_path(source, resolved_path, MAXPATHLEN); in PHP_METHOD()
|
/php-src/ext/dom/ |
H A D | document.c | 1335 if (!VCWD_REALPATH(source, resolved_path) && !expand_filepath(source, resolved_path)) { in dom_get_valid_file_path() 1339 file_dest = resolved_path; in dom_get_valid_file_path() 1355 char *directory=NULL, resolved_path[MAXPATHLEN + 1]; in dom_document_parser() local 1398 directory = VCWD_GETCWD(resolved_path, MAXPATHLEN); in dom_document_parser() 1400 directory = VCWD_GETWD(resolved_path); in dom_document_parser() 1406 resolved_path_len = strlen(resolved_path); in dom_document_parser() 1407 if (resolved_path[resolved_path_len - 1] != DEFAULT_SLASH) { in dom_document_parser() 1408 resolved_path[resolved_path_len] = DEFAULT_SLASH; in dom_document_parser() 1409 resolved_path[++resolved_path_len] = '\0'; in dom_document_parser() 1871 char resolved_path[MAXPATHLEN + 1]; in dom_document_schema_validate() local [all …]
|
/php-src/main/streams/ |
H A D | streams.c | 2191 zend_string *resolved_path = NULL; local 2212 if (resolved_path) { 2213 path = ZSTR_VAL(resolved_path); 2219 if (resolved_path) { 2231 if (resolved_path) { 2263 *opened_path = resolved_path; 2264 resolved_path = NULL; 2284 if (resolved_path) { 2293 if (resolved_path) { 2334 if (resolved_path) { [all …]
|
/php-src/ext/fileinfo/ |
H A D | fileinfo.c | 166 char resolved_path[MAXPATHLEN]; in PHP_FUNCTION() local 198 if (!expand_filepath_with_mode(file, resolved_path, NULL, 0, CWD_EXPAND)) { in PHP_FUNCTION() 207 file = resolved_path; in PHP_FUNCTION()
|
/php-src/ext/zip/ |
H A D | php_zip.c | 290 char resolved_path[MAXPATHLEN]; in php_zip_add_file() local 297 if (!expand_filepath(filename, resolved_path)) { in php_zip_add_file() 309 fd = fopen(resolved_path, "rb"); in php_zip_add_file() 1177 char resolved_path[MAXPATHLEN + 1]; in PHP_FUNCTION() local 1202 rsrc_int->za = zip_open(resolved_path, 0, &err); in PHP_FUNCTION() 1456 char *resolved_path; local 1486 efree(resolved_path); 1514 intern = zip_open(resolved_path, flags, &err); 1516 efree(resolved_path); 1519 ze_obj->filename = resolved_path; [all …]
|
/php-src/ext/opcache/ |
H A D | ZendAccelerator.c | 2537 zend_string *resolved_path; in persistent_zend_resolve_path() local 2561 resolved_path = accelerator_orig_zend_resolve_path(filename); in persistent_zend_resolve_path() 2563 if (resolved_path) { in persistent_zend_resolve_path() 2583 return resolved_path; in persistent_zend_resolve_path() 2590 return resolved_path; in persistent_zend_resolve_path() 4116 if (resolved_path) { 4118 zend_string_release(resolved_path); 4156 if (resolved_path) { 4157 zend_persistent_script *incl = zend_hash_find_ptr(preload_scripts, resolved_path); 4164 ZVAL_STR_COPY(RT_CONSTANT(opline, opline->op1), resolved_path); [all …]
|
/php-src/ext/standard/ |
H A D | streamsfuncs.c | 1612 zend_string *resolved_path; in PHP_FUNCTION() local 1618 resolved_path = zend_resolve_path(filename); in PHP_FUNCTION() 1620 if (resolved_path) { in PHP_FUNCTION() 1621 RETURN_STR(resolved_path); in PHP_FUNCTION()
|
/php-src/sapi/litespeed/ |
H A D | lsapilib.c | 3892 char resolved_path[PATH_MAX+1]; in lsapi_check_path() local 3910 if (realpath(p, resolved_path) == NULL in lsapi_check_path() 3913 if (strncmp(resolved_path, "/etc/", 5) == 0) in lsapi_check_path()
|