Home
last modified time | relevance | path

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

/php-src/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.c4890 zend_string *resolved_path; in zend_include_or_eval() local
4892 resolved_path = zend_resolve_path(inc_filename); in zend_include_or_eval()
4893 if (EXPECTED(resolved_path)) { in zend_include_or_eval()
4894 if (zend_hash_exists(&EG(included_files), resolved_path)) { in zend_include_or_eval()
4896 zend_string_release_ex(resolved_path, 0); in zend_include_or_eval()
4908 resolved_path = zend_string_copy(inc_filename); in zend_include_or_eval()
4911 zend_stream_init_filename_ex(&file_handle, resolved_path); in zend_include_or_eval()
4915 file_handle.opened_path = zend_string_copy(resolved_path); in zend_include_or_eval()
4930 zend_string_release_ex(resolved_path, 0); in zend_include_or_eval()
/php-src/ext/xmlreader/
H A Dphp_xmlreader.c213 if (!VCWD_REALPATH(source, resolved_path) && !expand_filepath(source, resolved_path)) { in _xmlreader_get_valid_file_path()
217 file_dest = resolved_path; in _xmlreader_get_valid_file_path()
235 char resolved_path[MAXPATHLEN + 1]; in _xmlreader_get_relaxNG() local
803 char resolved_path[MAXPATHLEN + 1]; in PHP_METHOD() local
986 char *directory=NULL, resolved_path[MAXPATHLEN + 1]; in PHP_METHOD() local
1016 directory = VCWD_GETCWD(resolved_path, MAXPATHLEN); in PHP_METHOD()
1018 directory = VCWD_GETWD(resolved_path); in PHP_METHOD()
1021 resolved_path_len = strlen(resolved_path); in PHP_METHOD()
1022 if (resolved_path[resolved_path_len - 1] != DEFAULT_SLASH) { in PHP_METHOD()
1023 resolved_path[resolved_path_len] = DEFAULT_SLASH; in PHP_METHOD()
[all …]
/php-src/main/
H A Dfopen_wrappers.c364 zend_string *resolved_path = NULL; local
435 resolved_path = zend_resolve_path(filename);
438 if (!resolved_path) {
452 zend_string_release_ex(resolved_path, 0);
490 zend_string *resolved_path; local
506 if ((resolved_path = tsrm_realpath_str(actual_path))) {
507 return resolved_path;
582 if ((resolved_path = tsrm_realpath_str(actual_path))) {
583 return resolved_path;
/php-src/ext/libxml/
H A Dlibxml.c396 char *resolved_path; in php_libxml_streams_IO_open_wrapper() local
410 resolved_path = xmlURIUnescapeString(filename, 0, NULL); in php_libxml_streams_IO_open_wrapper()
419 if (strncasecmp(resolved_path, "file:/", pre_len) == 0 in php_libxml_streams_IO_open_wrapper()
420 && '/' != resolved_path[pre_len]) { in php_libxml_streams_IO_open_wrapper()
421 xmlChar *tmp = xmlStrdup(resolved_path + pre_len); in php_libxml_streams_IO_open_wrapper()
422 xmlFree(resolved_path); in php_libxml_streams_IO_open_wrapper()
423 resolved_path = tmp; in php_libxml_streams_IO_open_wrapper()
428 resolved_path = (char *)filename; in php_libxml_streams_IO_open_wrapper()
435 if (resolved_path == NULL) { in php_libxml_streams_IO_open_wrapper()
449 xmlFree(resolved_path); in php_libxml_streams_IO_open_wrapper()
[all …]
/php-src/ext/dom/
H A Ddocument.c1305 if (!VCWD_REALPATH(source, resolved_path) && !expand_filepath(source, resolved_path)) { in _dom_get_valid_file_path()
1309 file_dest = resolved_path; in _dom_get_valid_file_path()
1325 char *directory=NULL, resolved_path[MAXPATHLEN + 1]; in dom_document_parser() local
1368 directory = VCWD_GETCWD(resolved_path, MAXPATHLEN); in dom_document_parser()
1370 directory = VCWD_GETWD(resolved_path); in dom_document_parser()
1376 resolved_path_len = strlen(resolved_path); in dom_document_parser()
1377 if (resolved_path[resolved_path_len - 1] != DEFAULT_SLASH) { in dom_document_parser()
1378 resolved_path[resolved_path_len] = DEFAULT_SLASH; in dom_document_parser()
1379 resolved_path[++resolved_path_len] = '\0'; in dom_document_parser()
1831 char resolved_path[MAXPATHLEN + 1]; in _dom_document_schema_validate() local
[all …]
/php-src/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-src/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-src/main/streams/
H A Dstreams.c2186 zend_string *resolved_path = NULL; local
2207 if (resolved_path) {
2208 path = ZSTR_VAL(resolved_path);
2223 if (resolved_path) {
2224 zend_string_release_ex(resolved_path, 0);
2255 *opened_path = resolved_path;
2256 resolved_path = NULL;
2276 if (resolved_path) {
2285 if (resolved_path) {
2326 if (resolved_path) {
[all …]
/php-src/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-src/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()
4088 if (resolved_path) {
4090 zend_string_release(resolved_path);
4128 if (resolved_path) {
4129 zend_persistent_script *incl = zend_hash_find_ptr(preload_scripts, resolved_path);
4136 ZVAL_STR_COPY(RT_CONSTANT(opline, opline->op1), resolved_path);
[all …]
/php-src/ext/standard/
H A Dstreamsfuncs.c1611 zend_string *resolved_path; in PHP_FUNCTION() local
1617 resolved_path = zend_resolve_path(filename); in PHP_FUNCTION()
1619 if (resolved_path) { in PHP_FUNCTION()
1620 RETURN_STR(resolved_path); in PHP_FUNCTION()
/php-src/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 96 milliseconds