Home
last modified time | relevance | path

Searched refs:resolved_path (Results 1 – 13 of 13) sorted by relevance

/PHP-7.2/main/
H A Dfopen_wrappers.c357 zend_string *resolved_path = NULL; local
426 if (!resolved_path) {
442 zend_string_release(resolved_path);
477 char resolved_path[MAXPATHLEN]; local
493 if (tsrm_realpath(actual_path, resolved_path)) {
494 return zend_string_init(resolved_path, strlen(resolved_path), 0);
513 if (tsrm_realpath(filename, resolved_path)) {
514 return zend_string_init(resolved_path, strlen(resolved_path), 0);
570 if (tsrm_realpath(actual_path, resolved_path)) {
571 return zend_string_init(resolved_path, strlen(resolved_path), 0);
[all …]
/PHP-7.2/Zend/
H A Dzend_virtual_cwd.c1222 char resolved_path[MAXPATHLEN]; in virtual_file_ex() local
1295 resolved_path[0] = path[0]; in virtual_file_ex()
1296 resolved_path[1] = ':'; in virtual_file_ex()
1315 resolved_path[0] = DEFAULT_SLASH; in virtual_file_ex()
1316 resolved_path[1] = DEFAULT_SLASH; in virtual_file_ex()
1319 if (resolved_path[start] == 0) { in virtual_file_ex()
1322 resolved_path[start] = toupper(resolved_path[start]); in virtual_file_ex()
1327 if (resolved_path[start] == 0) { in virtual_file_ex()
1330 resolved_path[start] = toupper(resolved_path[start]); in virtual_file_ex()
1336 resolved_path[0] = toupper(resolved_path[0]); in virtual_file_ex()
[all …]
H A Dzend_execute.c2790 zend_string *resolved_path; in zend_include_or_eval() local
2792 resolved_path = zend_resolve_path(Z_STRVAL_P(inc_filename), (int)Z_STRLEN_P(inc_filename)); in zend_include_or_eval()
2793 if (resolved_path) { in zend_include_or_eval()
2794 if (zend_hash_exists(&EG(included_files), resolved_path)) { in zend_include_or_eval()
2798 resolved_path = zend_string_copy(Z_STR_P(inc_filename)); in zend_include_or_eval()
2801 if (SUCCESS == zend_stream_open(ZSTR_VAL(resolved_path), &file_handle)) { in zend_include_or_eval()
2804 file_handle.opened_path = zend_string_copy(resolved_path); in zend_include_or_eval()
2810 zend_string_release(resolved_path); in zend_include_or_eval()
2827 zend_string_release(resolved_path); in zend_include_or_eval()
/PHP-7.2/ext/xmlreader/
H A Dphp_xmlreader.c259 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.2/ext/libxml/
H A Dlibxml.c305 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.2/ext/dom/
H A Ddocument.c1339 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.2/main/streams/
H A Dstreams.c1998 zend_string *resolved_path = NULL; local
2012 if (resolved_path) {
2013 path = ZSTR_VAL(resolved_path);
2025 if (resolved_path) {
2026 zend_string_release(resolved_path);
2057 *opened_path = resolved_path;
2058 resolved_path = NULL;
2078 if (resolved_path) {
2087 if (resolved_path) {
2128 if (resolved_path) {
[all …]
/PHP-7.2/ext/zip/
H A Dphp_zip.c287 char resolved_path[MAXPATHLEN]; in php_zip_add_file() local
295 if (!expand_filepath(filename, resolved_path)) { in php_zip_add_file()
299 php_stat(resolved_path, strlen(resolved_path), FS_EXISTS, &exists_flag); in php_zip_add_file()
1141 char resolved_path[MAXPATHLEN + 1]; in PHP_NAMED_FUNCTION() local
1165 rsrc_int->za = zip_open(resolved_path, 0, &err); in PHP_NAMED_FUNCTION()
1439 char *resolved_path; in ZIPARCHIVE_METHOD() local
1470 efree(resolved_path); in ZIPARCHIVE_METHOD()
1480 intern = zip_open(resolved_path, flags, &err); in ZIPARCHIVE_METHOD()
1482 efree(resolved_path); in ZIPARCHIVE_METHOD()
1485 ze_obj->filename = resolved_path; in ZIPARCHIVE_METHOD()
[all …]
/PHP-7.2/ext/fileinfo/
H A Dfileinfo.c296 char resolved_path[MAXPATHLEN]; in PHP_FUNCTION()
329 if (!expand_filepath_with_mode(file, resolved_path, NULL, 0, CWD_EXPAND)) { in PHP_FUNCTION()
338 file = resolved_path; in PHP_FUNCTION()
/PHP-7.2/ext/xmlwriter/
H A Dphp_xmlwriter.c586 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()
1685 char resolved_path[MAXPATHLEN + 1]; in PHP_FUNCTION() local
1704 valid_file = _xmlwriter_get_valid_file_path(source, resolved_path, MAXPATHLEN); in PHP_FUNCTION()
/PHP-7.2/ext/standard/
H A Dstreamsfuncs.c1560 zend_string *resolved_path; in PHP_FUNCTION() local
1566 resolved_path = zend_resolve_path(filename, (int)filename_len); in PHP_FUNCTION()
1568 if (resolved_path) { in PHP_FUNCTION()
1569 RETURN_STR(resolved_path); in PHP_FUNCTION()
/PHP-7.2/ext/opcache/
H A DZendAccelerator.c2139 zend_string *resolved_path; in persistent_zend_resolve_path() local
2164 resolved_path = accelerator_orig_zend_resolve_path(filename, filename_len); in persistent_zend_resolve_path()
2166 if (resolved_path) { in persistent_zend_resolve_path()
2168 zend_accel_hash_entry *bucket = zend_accel_hash_find_entry(&ZCSG(hash), resolved_path); in persistent_zend_resolve_path()
2186 return resolved_path; in persistent_zend_resolve_path()
2193 return resolved_path; in persistent_zend_resolve_path()
/PHP-7.2/sapi/litespeed/
H A Dlsapilib.c3639 char resolved_path[PATH_MAX+1]; in lsapi_check_path() local
3657 if (realpath(p, resolved_path) == NULL in lsapi_check_path()
3660 if (strncmp(resolved_path, "/etc/", 5) == 0) in lsapi_check_path()

Completed in 92 milliseconds