Home
last modified time | relevance | path

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

/PHP-8.4/Zend/
H A Dzend_virtual_cwd.c1010 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 Dzend_execute.c5083 zend_string *resolved_path; in zend_include_or_eval() local
5085 resolved_path = zend_resolve_path(inc_filename); in zend_include_or_eval()
5086 if (EXPECTED(resolved_path)) { in zend_include_or_eval()
5087 if (zend_hash_exists(&EG(included_files), resolved_path)) { in zend_include_or_eval()
5089 zend_string_release_ex(resolved_path, 0); in zend_include_or_eval()
5101 resolved_path = zend_string_copy(inc_filename); in zend_include_or_eval()
5104 zend_stream_init_filename_ex(&file_handle, resolved_path); in zend_include_or_eval()
5108 file_handle.opened_path = zend_string_copy(resolved_path); in zend_include_or_eval()
5123 zend_string_release_ex(resolved_path, 0); in zend_include_or_eval()
/PHP-8.4/ext/xmlreader/
H A Dphp_xmlreader.c285 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-8.4/main/
H A Dfopen_wrappers.c364 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-8.4/ext/libxml/
H A Dlibxml.c412 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()
433 if (strncasecmp(resolved_path, "file:/", pre_len) == 0 in php_libxml_streams_IO_open_wrapper()
434 && '/' != resolved_path[pre_len]) { in php_libxml_streams_IO_open_wrapper()
435 xmlChar *tmp = xmlStrdup(resolved_path + pre_len); in php_libxml_streams_IO_open_wrapper()
436 xmlFree(resolved_path); in php_libxml_streams_IO_open_wrapper()
437 resolved_path = tmp; in php_libxml_streams_IO_open_wrapper()
442 resolved_path = (char *)filename; in php_libxml_streams_IO_open_wrapper()
449 if (resolved_path == NULL) { in php_libxml_streams_IO_open_wrapper()
463 xmlFree(resolved_path); in php_libxml_streams_IO_open_wrapper()
[all …]
/PHP-8.4/ext/xmlwriter/
H A Dphp_xmlwriter.c108 static char *_xmlwriter_get_valid_file_path(char *source, char *resolved_path, int resolved_path_le… in _xmlwriter_get_valid_file_path() argument
154 if (!VCWD_REALPATH(source, resolved_path) && !expand_filepath(source, resolved_path)) { in _xmlwriter_get_valid_file_path()
170 file_dest = resolved_path; in _xmlwriter_get_valid_file_path()
805 char resolved_path[MAXPATHLEN + 1]; in PHP_FUNCTION() local
824 valid_file = _xmlwriter_get_valid_file_path(source, resolved_path, MAXPATHLEN); in PHP_FUNCTION()
854 char resolved_path[MAXPATHLEN + 1]; in PHP_METHOD() local
865 const char *valid_file = _xmlwriter_get_valid_file_path(source, resolved_path, MAXPATHLEN); in PHP_METHOD()
/PHP-8.4/ext/dom/
H A Ddocument.c1334 if (!VCWD_REALPATH(source, resolved_path) && !expand_filepath(source, resolved_path)) { in dom_get_valid_file_path()
1338 file_dest = resolved_path; in dom_get_valid_file_path()
1354 char *directory=NULL, resolved_path[MAXPATHLEN + 1]; in dom_document_parser() local
1397 directory = VCWD_GETCWD(resolved_path, MAXPATHLEN); in dom_document_parser()
1399 directory = VCWD_GETWD(resolved_path); in dom_document_parser()
1405 resolved_path_len = strlen(resolved_path); in dom_document_parser()
1406 if (resolved_path[resolved_path_len - 1] != DEFAULT_SLASH) { in dom_document_parser()
1407 resolved_path[resolved_path_len] = DEFAULT_SLASH; in dom_document_parser()
1408 resolved_path[++resolved_path_len] = '\0'; in dom_document_parser()
1872 char resolved_path[MAXPATHLEN + 1]; in dom_document_schema_validate() local
[all …]
/PHP-8.4/main/streams/
H A Dstreams.c2191 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-8.4/ext/fileinfo/
H A Dfileinfo.c166 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-8.4/ext/zip/
H A Dphp_zip.c290 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-8.4/ext/opcache/
H A DZendAccelerator.c2537 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()
4113 if (resolved_path) {
4115 zend_string_release(resolved_path);
4153 if (resolved_path) {
4154 zend_persistent_script *incl = zend_hash_find_ptr(preload_scripts, resolved_path);
4161 ZVAL_STR_COPY(RT_CONSTANT(opline, opline->op1), resolved_path);
[all …]
/PHP-8.4/ext/standard/
H A Dstreamsfuncs.c1612 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-8.4/sapi/litespeed/
H A Dlsapilib.c3892 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()

Completed in 146 milliseconds