Home
last modified time | relevance | path

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

/PHP-8.3/Zend/
H A Dzend_virtual_cwd.c1012 char resolved_path[MAXPATHLEN]; in virtual_file_ex() local
1090 resolved_path[0] = path[0]; in virtual_file_ex()
1091 resolved_path[1] = ':'; in virtual_file_ex()
1111 resolved_path[0] = DEFAULT_SLASH; in virtual_file_ex()
1112 resolved_path[1] = DEFAULT_SLASH; in virtual_file_ex()
1115 if (resolved_path[start] == 0) { in virtual_file_ex()
1118 resolved_path[start] = toupper(resolved_path[start]); in virtual_file_ex()
1126 resolved_path[start] = toupper(resolved_path[start]); in virtual_file_ex()
1132 resolved_path[0] = toupper(resolved_path[0]); in virtual_file_ex()
1135 resolved_path[3] = '\0'; in virtual_file_ex()
[all …]
H A Dzend_execute.c4894 zend_string *resolved_path; in zend_include_or_eval() local
4896 resolved_path = zend_resolve_path(inc_filename); in zend_include_or_eval()
4897 if (EXPECTED(resolved_path)) { in zend_include_or_eval()
4898 if (zend_hash_exists(&EG(included_files), resolved_path)) { in zend_include_or_eval()
4900 zend_string_release_ex(resolved_path, 0); in zend_include_or_eval()
4912 resolved_path = zend_string_copy(inc_filename); in zend_include_or_eval()
4915 zend_stream_init_filename_ex(&file_handle, resolved_path); in zend_include_or_eval()
4919 file_handle.opened_path = zend_string_copy(resolved_path); in zend_include_or_eval()
4934 zend_string_release_ex(resolved_path, 0); in zend_include_or_eval()
/PHP-8.3/ext/xmlreader/
H A Dphp_xmlreader.c242 if (!VCWD_REALPATH(source, resolved_path) && !expand_filepath(source, resolved_path)) { in _xmlreader_get_valid_file_path()
246 file_dest = resolved_path; in _xmlreader_get_valid_file_path()
264 char resolved_path[MAXPATHLEN + 1]; in _xmlreader_get_relaxNG() local
844 char resolved_path[MAXPATHLEN + 1]; in PHP_METHOD() local
1027 char *directory=NULL, resolved_path[MAXPATHLEN + 1]; in PHP_METHOD() local
1057 directory = VCWD_GETCWD(resolved_path, MAXPATHLEN); in PHP_METHOD()
1059 directory = VCWD_GETWD(resolved_path); in PHP_METHOD()
1062 resolved_path_len = strlen(resolved_path); in PHP_METHOD()
1063 if (resolved_path[resolved_path_len - 1] != DEFAULT_SLASH) { in PHP_METHOD()
1064 resolved_path[resolved_path_len] = DEFAULT_SLASH; in PHP_METHOD()
[all …]
/PHP-8.3/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.3/ext/libxml/
H A Dlibxml.c405 char *resolved_path; in php_libxml_streams_IO_open_wrapper() local
419 resolved_path = xmlURIUnescapeString(filename, 0, NULL); in php_libxml_streams_IO_open_wrapper()
428 if (strncasecmp(resolved_path, "file:/", pre_len) == 0 in php_libxml_streams_IO_open_wrapper()
429 && '/' != resolved_path[pre_len]) { in php_libxml_streams_IO_open_wrapper()
430 xmlChar *tmp = xmlStrdup(resolved_path + pre_len); in php_libxml_streams_IO_open_wrapper()
431 xmlFree(resolved_path); in php_libxml_streams_IO_open_wrapper()
432 resolved_path = tmp; in php_libxml_streams_IO_open_wrapper()
437 resolved_path = (char *)filename; in php_libxml_streams_IO_open_wrapper()
444 if (resolved_path == NULL) { in php_libxml_streams_IO_open_wrapper()
458 xmlFree(resolved_path); in php_libxml_streams_IO_open_wrapper()
[all …]
/PHP-8.3/ext/dom/
H A Ddocument.c1246 if (!VCWD_REALPATH(source, resolved_path) && !expand_filepath(source, resolved_path)) { in _dom_get_valid_file_path()
1250 file_dest = resolved_path; in _dom_get_valid_file_path()
1266 char *directory=NULL, resolved_path[MAXPATHLEN + 1]; in dom_document_parser() local
1302 directory = VCWD_GETCWD(resolved_path, MAXPATHLEN); in dom_document_parser()
1304 directory = VCWD_GETWD(resolved_path); in dom_document_parser()
1310 resolved_path_len = strlen(resolved_path); in dom_document_parser()
1311 if (resolved_path[resolved_path_len - 1] != DEFAULT_SLASH) { in dom_document_parser()
1312 resolved_path[resolved_path_len] = DEFAULT_SLASH; in dom_document_parser()
1313 resolved_path[++resolved_path_len] = '\0'; in dom_document_parser()
1781 char resolved_path[MAXPATHLEN + 1]; in _dom_document_schema_validate() local
[all …]
/PHP-8.3/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.3/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.3/ext/xmlwriter/
H A Dphp_xmlwriter.c105 static char *_xmlwriter_get_valid_file_path(char *source, char *resolved_path, int resolved_path_le… in _xmlwriter_get_valid_file_path() argument
151 if (!VCWD_REALPATH(source, resolved_path) && !expand_filepath(source, resolved_path)) { in _xmlwriter_get_valid_file_path()
167 file_dest = resolved_path; in _xmlwriter_get_valid_file_path()
784 char resolved_path[MAXPATHLEN + 1]; in PHP_FUNCTION() local
803 valid_file = _xmlwriter_get_valid_file_path(source, resolved_path, MAXPATHLEN); in PHP_FUNCTION()
/PHP-8.3/ext/zip/
H A Dphp_zip.c291 char resolved_path[MAXPATHLEN]; in php_zip_add_file() local
298 if (!expand_filepath(filename, resolved_path)) { in php_zip_add_file()
310 fd = fopen(resolved_path, "rb"); in php_zip_add_file()
1171 char resolved_path[MAXPATHLEN + 1]; in PHP_FUNCTION() local
1196 rsrc_int->za = zip_open(resolved_path, 0, &err); in PHP_FUNCTION()
1450 char *resolved_path; local
1480 efree(resolved_path);
1508 intern = zip_open(resolved_path, flags, &err);
1510 efree(resolved_path);
1513 ze_obj->filename = resolved_path;
[all …]
/PHP-8.3/ext/opcache/
H A DZendAccelerator.c2513 zend_string *resolved_path; in persistent_zend_resolve_path() local
2537 resolved_path = accelerator_orig_zend_resolve_path(filename); in persistent_zend_resolve_path()
2539 if (resolved_path) { in persistent_zend_resolve_path()
2559 return resolved_path; in persistent_zend_resolve_path()
2566 return resolved_path; in persistent_zend_resolve_path()
4084 if (resolved_path) {
4086 zend_string_release(resolved_path);
4124 if (resolved_path) {
4125 zend_persistent_script *incl = zend_hash_find_ptr(preload_scripts, resolved_path);
4132 ZVAL_STR_COPY(RT_CONSTANT(opline, opline->op1), resolved_path);
[all …]
/PHP-8.3/ext/standard/
H A Dstreamsfuncs.c1592 zend_string *resolved_path; in PHP_FUNCTION() local
1598 resolved_path = zend_resolve_path(filename); in PHP_FUNCTION()
1600 if (resolved_path) { in PHP_FUNCTION()
1601 RETURN_STR(resolved_path); in PHP_FUNCTION()
/PHP-8.3/sapi/litespeed/
H A Dlsapilib.c3897 char resolved_path[PATH_MAX+1]; in lsapi_check_path() local
3915 if (realpath(p, resolved_path) == NULL in lsapi_check_path()
3918 if (strncmp(resolved_path, "/etc/", 5) == 0) in lsapi_check_path()

Completed in 1827 milliseconds