Home
last modified time | relevance | path

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

/PHP-8.1/Zend/
H A Dzend_virtual_cwd.c1089 resolved_path[0] = path[0]; in virtual_file_ex()
1090 resolved_path[1] = ':'; in virtual_file_ex()
1110 resolved_path[0] = DEFAULT_SLASH; in virtual_file_ex()
1111 resolved_path[1] = DEFAULT_SLASH; in virtual_file_ex()
1114 if (resolved_path[start] == 0) { in virtual_file_ex()
1117 resolved_path[start] = toupper(resolved_path[start]); in virtual_file_ex()
1122 if (resolved_path[start] == 0) { in virtual_file_ex()
1125 resolved_path[start] = toupper(resolved_path[start]); in virtual_file_ex()
1131 resolved_path[0] = toupper(resolved_path[0]); in virtual_file_ex()
1132 resolved_path[2] = DEFAULT_SLASH; in virtual_file_ex()
[all …]
H A Dzend_execute.c4784 zend_string *resolved_path; in zend_include_or_eval() local
4786 resolved_path = zend_resolve_path(inc_filename); in zend_include_or_eval()
4787 if (EXPECTED(resolved_path)) { in zend_include_or_eval()
4788 if (zend_hash_exists(&EG(included_files), resolved_path)) { in zend_include_or_eval()
4790 zend_string_release_ex(resolved_path, 0); in zend_include_or_eval()
4802 resolved_path = zend_string_copy(inc_filename); in zend_include_or_eval()
4805 zend_stream_init_filename_ex(&file_handle, resolved_path); in zend_include_or_eval()
4809 file_handle.opened_path = zend_string_copy(resolved_path); in zend_include_or_eval()
4815 zend_string_release_ex(resolved_path, 0); in zend_include_or_eval()
4828 zend_string_release_ex(resolved_path, 0); in zend_include_or_eval()
/PHP-8.1/ext/xmlreader/
H A Dphp_xmlreader.c243 if (!VCWD_REALPATH(source, resolved_path) && !expand_filepath(source, resolved_path)) { in _xmlreader_get_valid_file_path()
247 file_dest = resolved_path; in _xmlreader_get_valid_file_path()
265 char resolved_path[MAXPATHLEN + 1]; in _xmlreader_get_relaxNG() local
846 char resolved_path[MAXPATHLEN + 1]; in PHP_METHOD() local
1029 char *directory=NULL, resolved_path[MAXPATHLEN + 1]; in PHP_METHOD() local
1059 directory = VCWD_GETCWD(resolved_path, MAXPATHLEN); in PHP_METHOD()
1061 directory = VCWD_GETWD(resolved_path); in PHP_METHOD()
1064 resolved_path_len = strlen(resolved_path); in PHP_METHOD()
1065 if (resolved_path[resolved_path_len - 1] != DEFAULT_SLASH) { in PHP_METHOD()
1066 resolved_path[resolved_path_len] = DEFAULT_SLASH; in PHP_METHOD()
[all …]
/PHP-8.1/main/
H A Dfopen_wrappers.c352 zend_string *resolved_path = NULL; local
423 resolved_path = zend_resolve_path(filename);
426 if (!resolved_path) {
440 zend_string_release_ex(resolved_path, 0);
478 zend_string *resolved_path; local
494 if ((resolved_path = tsrm_realpath_str(actual_path))) {
495 return resolved_path;
570 if ((resolved_path = tsrm_realpath_str(actual_path))) {
571 return resolved_path;
/PHP-8.1/ext/libxml/
H A Dlibxml.c254 char *resolved_path; in php_libxml_streams_IO_open_wrapper() local
268 resolved_path = xmlURIUnescapeString(filename, 0, NULL); in php_libxml_streams_IO_open_wrapper()
277 if (strncasecmp(resolved_path, "file:/", pre_len) == 0 in php_libxml_streams_IO_open_wrapper()
278 && '/' != resolved_path[pre_len]) { in php_libxml_streams_IO_open_wrapper()
279 xmlChar *tmp = xmlStrdup(resolved_path + pre_len); in php_libxml_streams_IO_open_wrapper()
280 xmlFree(resolved_path); in php_libxml_streams_IO_open_wrapper()
281 resolved_path = tmp; in php_libxml_streams_IO_open_wrapper()
286 resolved_path = (char *)filename; in php_libxml_streams_IO_open_wrapper()
293 if (resolved_path == NULL) { in php_libxml_streams_IO_open_wrapper()
307 xmlFree(resolved_path); in php_libxml_streams_IO_open_wrapper()
[all …]
/PHP-8.1/ext/dom/
H A Ddocument.c1188 if (!VCWD_REALPATH(source, resolved_path) && !expand_filepath(source, resolved_path)) { in _dom_get_valid_file_path()
1192 file_dest = resolved_path; in _dom_get_valid_file_path()
1211 char *directory=NULL, resolved_path[MAXPATHLEN + 1]; in dom_document_parser() local
1253 directory = VCWD_GETCWD(resolved_path, MAXPATHLEN); in dom_document_parser()
1255 directory = VCWD_GETWD(resolved_path); in dom_document_parser()
1261 resolved_path_len = strlen(resolved_path); in dom_document_parser()
1262 if (resolved_path[resolved_path_len - 1] != DEFAULT_SLASH) { in dom_document_parser()
1263 resolved_path[resolved_path_len] = DEFAULT_SLASH; in dom_document_parser()
1264 resolved_path[++resolved_path_len] = '\0'; in dom_document_parser()
1659 char resolved_path[MAXPATHLEN + 1]; in _dom_document_schema_validate() local
[all …]
/PHP-8.1/main/streams/
H A Dstreams.c2038 zend_string *resolved_path = NULL; local
2059 if (resolved_path) {
2060 path = ZSTR_VAL(resolved_path);
2075 if (resolved_path) {
2076 zend_string_release_ex(resolved_path, 0);
2107 *opened_path = resolved_path;
2108 resolved_path = NULL;
2128 if (resolved_path) {
2137 if (resolved_path) {
2178 if (resolved_path) {
[all …]
/PHP-8.1/ext/fileinfo/
H A Dfileinfo.c184 char resolved_path[MAXPATHLEN]; in PHP_FUNCTION() local
216 if (!expand_filepath_with_mode(file, resolved_path, NULL, 0, CWD_EXPAND)) { in PHP_FUNCTION()
225 file = resolved_path; in PHP_FUNCTION()
/PHP-8.1/ext/xmlwriter/
H A Dphp_xmlwriter.c106 static char *_xmlwriter_get_valid_file_path(char *source, char *resolved_path, int resolved_path_le… in _xmlwriter_get_valid_file_path() argument
152 if (!VCWD_REALPATH(source, resolved_path) && !expand_filepath(source, resolved_path)) { in _xmlwriter_get_valid_file_path()
168 file_dest = resolved_path; in _xmlwriter_get_valid_file_path()
887 char resolved_path[MAXPATHLEN + 1]; in PHP_FUNCTION() local
906 valid_file = _xmlwriter_get_valid_file_path(source, resolved_path, MAXPATHLEN); in PHP_FUNCTION()
/PHP-8.1/ext/zip/
H A Dphp_zip.c284 char resolved_path[MAXPATHLEN]; in php_zip_add_file() local
291 if (!expand_filepath(filename, resolved_path)) { in php_zip_add_file()
1160 char resolved_path[MAXPATHLEN + 1]; in PHP_FUNCTION() local
1178 if(!expand_filepath(ZSTR_VAL(filename), resolved_path)) { in PHP_FUNCTION()
1185 rsrc_int->za = zip_open(resolved_path, 0, &err); in PHP_FUNCTION()
1439 char *resolved_path; local
1469 efree(resolved_path);
1497 intern = zip_open(resolved_path, flags, &err);
1499 efree(resolved_path);
1502 ze_obj->filename = resolved_path;
[all …]
/PHP-8.1/ext/opcache/
H A DZendAccelerator.c2540 zend_string *resolved_path; in persistent_zend_resolve_path() local
2564 resolved_path = accelerator_orig_zend_resolve_path(filename); in persistent_zend_resolve_path()
2566 if (resolved_path) { in persistent_zend_resolve_path()
2586 return resolved_path; in persistent_zend_resolve_path()
2593 return resolved_path; in persistent_zend_resolve_path()
4099 if (resolved_path) {
4101 zend_string_release(resolved_path);
4139 if (resolved_path) {
4140 zend_persistent_script *incl = zend_hash_find_ptr(preload_scripts, resolved_path);
4147 ZVAL_STR_COPY(RT_CONSTANT(opline, opline->op1), resolved_path);
[all …]
/PHP-8.1/ext/standard/
H A Dstreamsfuncs.c1566 zend_string *resolved_path; in PHP_FUNCTION() local
1572 resolved_path = zend_resolve_path(filename); in PHP_FUNCTION()
1574 if (resolved_path) { in PHP_FUNCTION()
1575 RETURN_STR(resolved_path); in PHP_FUNCTION()
/PHP-8.1/sapi/litespeed/
H A Dlsapilib.c3926 char resolved_path[PATH_MAX+1]; in lsapi_check_path() local
3944 if (realpath(p, resolved_path) == NULL in lsapi_check_path()
3947 if (strncmp(resolved_path, "/etc/", 5) == 0) in lsapi_check_path()

Completed in 126 milliseconds