/PHP-7.0/main/ |
H A D | fopen_wrappers.c | 359 zend_string *resolved_path = NULL; local 430 if (!resolved_path) { 446 zend_string_release(resolved_path); 481 char resolved_path[MAXPATHLEN]; local 497 if (tsrm_realpath(actual_path, resolved_path)) { 498 return zend_string_init(resolved_path, strlen(resolved_path), 0); 517 if (tsrm_realpath(filename, resolved_path)) { 518 return zend_string_init(resolved_path, strlen(resolved_path), 0); 574 if (tsrm_realpath(actual_path, resolved_path)) { 575 return zend_string_init(resolved_path, strlen(resolved_path), 0); [all …]
|
/PHP-7.0/Zend/ |
H A D | zend_virtual_cwd.c | 1199 char resolved_path[MAXPATHLEN]; in virtual_file_ex() local 1272 resolved_path[0] = path[0]; in virtual_file_ex() 1273 resolved_path[1] = ':'; in virtual_file_ex() 1292 resolved_path[0] = DEFAULT_SLASH; in virtual_file_ex() 1293 resolved_path[1] = DEFAULT_SLASH; in virtual_file_ex() 1296 if (resolved_path[start] == 0) { in virtual_file_ex() 1299 resolved_path[start] = toupper(resolved_path[start]); in virtual_file_ex() 1304 if (resolved_path[start] == 0) { in virtual_file_ex() 1307 resolved_path[start] = toupper(resolved_path[start]); in virtual_file_ex() 1313 resolved_path[0] = toupper(resolved_path[0]); in virtual_file_ex() [all …]
|
H A D | zend_vm_def.h | 5450 zend_string *resolved_path; variable 5452 resolved_path = zend_resolve_path(Z_STRVAL_P(inc_filename), (int)Z_STRLEN_P(inc_filename)); 5453 if (resolved_path) { 5454 failure_retval = zend_hash_exists(&EG(included_files), resolved_path); 5456 resolved_path = zend_string_copy(Z_STR_P(inc_filename)); 5461 } else if (SUCCESS == zend_stream_open(ZSTR_VAL(resolved_path), &file_handle)) { 5464 file_handle.opened_path = zend_string_copy(resolved_path); 5481 zend_string_release(resolved_path);
|
H A D | zend_vm_execute.h | 3623 zend_string *resolved_path; local 3626 if (resolved_path) { 3629 resolved_path = zend_string_copy(Z_STR_P(inc_filename)); 3654 zend_string_release(resolved_path); 29482 zend_string *resolved_path; local 29485 if (resolved_path) { 29488 resolved_path = zend_string_copy(Z_STR_P(inc_filename)); 29513 zend_string_release(resolved_path); 41094 zend_string *resolved_path; local 41097 if (resolved_path) { [all …]
|
/PHP-7.0/ext/xmlreader/ |
H A D | php_xmlreader.c | 259 if (!VCWD_REALPATH(source, resolved_path) && !expand_filepath(source, resolved_path)) { in _xmlreader_get_valid_file_path() 263 file_dest = resolved_path; in _xmlreader_get_valid_file_path() 281 char resolved_path[MAXPATHLEN + 1]; in _xmlreader_get_relaxNG() local 859 char resolved_path[MAXPATHLEN + 1]; in PHP_METHOD() local 1043 char *directory=NULL, resolved_path[MAXPATHLEN]; in PHP_METHOD() local 1070 directory = VCWD_GETCWD(resolved_path, MAXPATHLEN); in PHP_METHOD() 1072 directory = VCWD_GETWD(resolved_path); in PHP_METHOD() 1075 resolved_path_len = strlen(resolved_path); in PHP_METHOD() 1076 if (resolved_path[resolved_path_len - 1] != DEFAULT_SLASH) { in PHP_METHOD() 1077 resolved_path[resolved_path_len] = DEFAULT_SLASH; in PHP_METHOD() [all …]
|
/PHP-7.0/ext/libxml/ |
H A D | libxml.c | 305 char *resolved_path; in php_libxml_streams_IO_open_wrapper() local 315 resolved_path = xmlURIUnescapeString(filename, 0, NULL); in php_libxml_streams_IO_open_wrapper() 324 if (strncasecmp(resolved_path, "file:/", pre_len) == 0 in php_libxml_streams_IO_open_wrapper() 325 && '/' != resolved_path[pre_len]) { in php_libxml_streams_IO_open_wrapper() 326 xmlChar *tmp = xmlStrdup(resolved_path + pre_len); in php_libxml_streams_IO_open_wrapper() 327 xmlFree(resolved_path); in php_libxml_streams_IO_open_wrapper() 328 resolved_path = tmp; in php_libxml_streams_IO_open_wrapper() 333 resolved_path = (char *)filename; in php_libxml_streams_IO_open_wrapper() 340 if (resolved_path == NULL) { in php_libxml_streams_IO_open_wrapper() 354 xmlFree(resolved_path); in php_libxml_streams_IO_open_wrapper() [all …]
|
/PHP-7.0/ext/dom/ |
H A D | document.c | 1339 if (!VCWD_REALPATH(source, resolved_path) && !expand_filepath(source, resolved_path)) { in _dom_get_valid_file_path() 1343 file_dest = resolved_path; in _dom_get_valid_file_path() 1362 char *directory=NULL, resolved_path[MAXPATHLEN]; in dom_document_parser() local 1403 directory = VCWD_GETCWD(resolved_path, MAXPATHLEN); in dom_document_parser() 1405 directory = VCWD_GETWD(resolved_path); in dom_document_parser() 1411 resolved_path_len = strlen(resolved_path); in dom_document_parser() 1412 if (resolved_path[resolved_path_len - 1] != DEFAULT_SLASH) { in dom_document_parser() 1413 resolved_path[resolved_path_len] = DEFAULT_SLASH; in dom_document_parser() 1414 resolved_path[++resolved_path_len] = '\0'; in dom_document_parser() 1808 char resolved_path[MAXPATHLEN + 1]; in _dom_document_schema_validate() local [all …]
|
/PHP-7.0/main/streams/ |
H A D | streams.c | 2017 zend_string *resolved_path = NULL; local 2031 if (resolved_path) { 2032 path = ZSTR_VAL(resolved_path); 2044 if (resolved_path) { 2045 zend_string_release(resolved_path); 2076 *opened_path = resolved_path; 2077 resolved_path = NULL; 2097 if (resolved_path) { 2106 if (resolved_path) { 2147 if (resolved_path) { [all …]
|
/PHP-7.0/ext/zip/ |
H A D | php_zip.c | 282 char resolved_path[MAXPATHLEN]; in php_zip_add_file() local 290 if (!expand_filepath(filename, resolved_path)) { in php_zip_add_file() 294 php_stat(resolved_path, strlen(resolved_path), FS_EXISTS, &exists_flag); in php_zip_add_file() 1115 char resolved_path[MAXPATHLEN + 1]; in PHP_NAMED_FUNCTION() local 1139 rsrc_int->za = zip_open(resolved_path, 0, &err); in PHP_NAMED_FUNCTION() 1413 char *resolved_path; in ZIPARCHIVE_METHOD() local 1444 efree(resolved_path); in ZIPARCHIVE_METHOD() 1454 intern = zip_open(resolved_path, flags, &err); in ZIPARCHIVE_METHOD() 1456 efree(resolved_path); in ZIPARCHIVE_METHOD() 1459 ze_obj->filename = resolved_path; in ZIPARCHIVE_METHOD() [all …]
|
/PHP-7.0/ext/fileinfo/ |
H A D | fileinfo.c | 291 char resolved_path[MAXPATHLEN]; in PHP_FUNCTION() 324 if (!expand_filepath_with_mode(file, resolved_path, NULL, 0, CWD_EXPAND)) { in PHP_FUNCTION() 333 file = resolved_path; in PHP_FUNCTION()
|
/PHP-7.0/ext/xmlwriter/ |
H A D | php_xmlwriter.c | 586 static char *_xmlwriter_get_valid_file_path(char *source, char *resolved_path, int resolved_path_le… in _xmlwriter_get_valid_file_path() argument 629 if (!VCWD_REALPATH(source, resolved_path) && !expand_filepath(source, resolved_path)) { in _xmlwriter_get_valid_file_path() 645 file_dest = resolved_path; in _xmlwriter_get_valid_file_path() 1683 char resolved_path[MAXPATHLEN + 1]; in PHP_FUNCTION() local 1702 valid_file = _xmlwriter_get_valid_file_path(source, resolved_path, MAXPATHLEN); in PHP_FUNCTION()
|
/PHP-7.0/ext/standard/ |
H A D | streamsfuncs.c | 1510 zend_string *resolved_path; in PHP_FUNCTION() local 1516 resolved_path = zend_resolve_path(filename, (int)filename_len); in PHP_FUNCTION() 1518 if (resolved_path) { in PHP_FUNCTION() 1519 RETURN_STR(resolved_path); in PHP_FUNCTION()
|
/PHP-7.0/ext/opcache/ |
H A D | ZendAccelerator.c | 1983 zend_string *resolved_path; in persistent_zend_resolve_path() local 2008 resolved_path = accelerator_orig_zend_resolve_path(filename, filename_len); in persistent_zend_resolve_path() 2010 if (resolved_path) { in persistent_zend_resolve_path() 2012 zend_accel_hash_entry *bucket = zend_accel_hash_find_entry(&ZCSG(hash), resolved_path); in persistent_zend_resolve_path() 2028 return resolved_path; in persistent_zend_resolve_path() 2035 return resolved_path; in persistent_zend_resolve_path()
|