/PHP-5.5/TSRM/ |
H A D | tsrm_virtual_cwd.c | 1154 char resolved_path[MAXPATHLEN]; in virtual_file_ex() local 1231 resolved_path[0] = path[0]; in virtual_file_ex() 1232 resolved_path[1] = ':'; in virtual_file_ex() 1251 resolved_path[0] = DEFAULT_SLASH; in virtual_file_ex() 1252 resolved_path[1] = DEFAULT_SLASH; in virtual_file_ex() 1255 if (resolved_path[start] == 0) { in virtual_file_ex() 1258 resolved_path[start] = toupper(resolved_path[start]); in virtual_file_ex() 1263 if (resolved_path[start] == 0) { in virtual_file_ex() 1266 resolved_path[start] = toupper(resolved_path[start]); in virtual_file_ex() 1272 resolved_path[0] = toupper(resolved_path[0]); in virtual_file_ex() [all …]
|
/PHP-5.5/main/ |
H A D | fopen_wrappers.c | 363 char *resolved_path = NULL; local 434 if (!resolved_path) { 446 efree(resolved_path); 475 char resolved_path[MAXPATHLEN]; local 490 if (tsrm_realpath(actual_path, resolved_path TSRMLS_CC)) { 491 return estrdup(resolved_path); 503 if (tsrm_realpath(filename, resolved_path TSRMLS_CC)) { 504 return estrdup(resolved_path); 560 if (tsrm_realpath(actual_path, resolved_path TSRMLS_CC)) { 561 return estrdup(resolved_path); [all …]
|
/PHP-5.5/ext/xmlreader/ |
H A D | php_xmlreader.c | 263 if (!VCWD_REALPATH(source, resolved_path) && !expand_filepath(source, resolved_path TSRMLS_CC)) { in _xmlreader_get_valid_file_path() 267 file_dest = resolved_path; in _xmlreader_get_valid_file_path() 285 char resolved_path[MAXPATHLEN + 1]; in _xmlreader_get_relaxNG() local 870 char resolved_path[MAXPATHLEN + 1]; in PHP_METHOD() local 1053 char *directory=NULL, resolved_path[MAXPATHLEN]; in PHP_METHOD() local 1080 directory = VCWD_GETCWD(resolved_path, MAXPATHLEN); in PHP_METHOD() 1082 directory = VCWD_GETWD(resolved_path); in PHP_METHOD() 1085 resolved_path_len = strlen(resolved_path); in PHP_METHOD() 1086 if (resolved_path[resolved_path_len - 1] != DEFAULT_SLASH) { in PHP_METHOD() 1087 resolved_path[resolved_path_len] = DEFAULT_SLASH; in PHP_METHOD() [all …]
|
/PHP-5.5/ext/libxml/ |
H A D | libxml.c | 296 char *resolved_path, *path_to_open = NULL; in php_libxml_streams_IO_open_wrapper() local 306 resolved_path = xmlURIUnescapeString(filename, 0, NULL); in php_libxml_streams_IO_open_wrapper() 315 if (strncasecmp(resolved_path, "file:/", pre_len) == 0 in php_libxml_streams_IO_open_wrapper() 316 && '/' != resolved_path[pre_len]) { in php_libxml_streams_IO_open_wrapper() 317 xmlChar *tmp = xmlStrdup(resolved_path + pre_len); in php_libxml_streams_IO_open_wrapper() 318 xmlFree(resolved_path); in php_libxml_streams_IO_open_wrapper() 319 resolved_path = tmp; in php_libxml_streams_IO_open_wrapper() 324 resolved_path = (char *)filename; in php_libxml_streams_IO_open_wrapper() 331 if (resolved_path == NULL) { in php_libxml_streams_IO_open_wrapper() 345 xmlFree(resolved_path); in php_libxml_streams_IO_open_wrapper() [all …]
|
/PHP-5.5/ext/dom/ |
H A D | document.c | 1539 if (!VCWD_REALPATH(source, resolved_path) && !expand_filepath(source, resolved_path TSRMLS_CC)) { in _dom_get_valid_file_path() 1543 file_dest = resolved_path; in _dom_get_valid_file_path() 1562 char *directory=NULL, resolved_path[MAXPATHLEN]; in dom_document_parser() local 1603 directory = VCWD_GETCWD(resolved_path, MAXPATHLEN); in dom_document_parser() 1605 directory = VCWD_GETWD(resolved_path); in dom_document_parser() 1611 resolved_path_len = strlen(resolved_path); in dom_document_parser() 1612 if (resolved_path[resolved_path_len - 1] != DEFAULT_SLASH) { in dom_document_parser() 1613 resolved_path[resolved_path_len] = DEFAULT_SLASH; in dom_document_parser() 1614 resolved_path[++resolved_path_len] = '\0'; in dom_document_parser() 1992 char resolved_path[MAXPATHLEN + 1]; in _dom_document_schema_validate() local [all …]
|
/PHP-5.5/main/streams/ |
H A D | streams.c | 2040 if (resolved_path) { 2041 path = resolved_path; 2053 if (resolved_path) { 2054 efree(resolved_path); 2086 resolved_path = NULL; 2106 if (resolved_path) { 2107 efree(resolved_path); 2115 if (resolved_path) { 2116 efree(resolved_path); 2156 if (resolved_path) { [all …]
|
/PHP-5.5/ext/opcache/ |
H A D | ZendAccelerator.c | 1747 char *resolved_path; local 1777 return resolved_path; 1817 char *resolved_path; local 1863 if (resolved_path && 1883 if (resolved_path) { 1884 efree(resolved_path); 1987 char *resolved_path; local 2025 if (resolved_path && 2026 …(bucket = zend_accel_hash_find_entry(&ZCSG(hash), resolved_path, strlen(resolved_path) + 1)) != NU… 2040 return resolved_path; [all …]
|
/PHP-5.5/ext/fileinfo/ |
H A D | fileinfo.c | 297 char resolved_path[MAXPATHLEN]; 326 if (!expand_filepath_with_mode(file, resolved_path, NULL, 0, CWD_EXPAND TSRMLS_CC)) { 330 file = resolved_path;
|
/PHP-5.5/ext/zip/ |
H A D | php_zip.c | 303 char resolved_path[MAXPATHLEN]; in php_zip_add_file() local 311 if (!expand_filepath(filename, resolved_path TSRMLS_CC)) { in php_zip_add_file() 315 php_stat(resolved_path, strlen(resolved_path), FS_EXISTS, &exists_flag TSRMLS_CC); in php_zip_add_file() 1222 char resolved_path[MAXPATHLEN + 1]; in PHP_NAMED_FUNCTION() local 1239 if(!expand_filepath(filename, resolved_path TSRMLS_CC)) { in PHP_NAMED_FUNCTION() 1245 rsrc_int->za = zip_open(resolved_path, 0, &err); in PHP_NAMED_FUNCTION() 1504 char resolved_path[MAXPATHLEN]; in ZIPARCHIVE_METHOD() local 1527 if (!expand_filepath(filename, resolved_path TSRMLS_CC)) { in ZIPARCHIVE_METHOD() 1543 intern = zip_open(resolved_path, flags, &err); in ZIPARCHIVE_METHOD() 1547 ze_obj->filename = estrdup(resolved_path); in ZIPARCHIVE_METHOD() [all …]
|
/PHP-5.5/ext/xmlwriter/ |
H A D | php_xmlwriter.c | 602 static char *_xmlwriter_get_valid_file_path(char *source, char *resolved_path, int resolved_path_le… in _xmlwriter_get_valid_file_path() argument 645 if (!VCWD_REALPATH(source, resolved_path) && !expand_filepath(source, resolved_path TSRMLS_CC)) { in _xmlwriter_get_valid_file_path() 661 file_dest = resolved_path; in _xmlwriter_get_valid_file_path() 1749 char resolved_path[MAXPATHLEN + 1]; in PHP_FUNCTION() local 1778 valid_file = _xmlwriter_get_valid_file_path(source, resolved_path, MAXPATHLEN TSRMLS_CC); in PHP_FUNCTION()
|
/PHP-5.5/ext/standard/ |
H A D | streamsfuncs.c | 1549 char *filename, *resolved_path; in PHP_FUNCTION() local 1556 resolved_path = zend_resolve_path(filename, filename_len TSRMLS_CC); in PHP_FUNCTION() 1558 if (resolved_path) { in PHP_FUNCTION() 1559 RETURN_STRING(resolved_path, 0); in PHP_FUNCTION()
|
/PHP-5.5/Zend/ |
H A D | zend_vm_def.h | 3774 char *resolved_path; variable 3776 … resolved_path = zend_resolve_path(Z_STRVAL_P(inc_filename), Z_STRLEN_P(inc_filename) TSRMLS_CC); 3777 if (resolved_path) { 3778 … failure_retval = zend_hash_exists(&EG(included_files), resolved_path, strlen(resolved_path)+1); 3780 resolved_path = Z_STRVAL_P(inc_filename); 3785 } else if (SUCCESS == zend_stream_open(resolved_path, &file_handle TSRMLS_CC)) { 3788 file_handle.opened_path = estrdup(resolved_path); 3805 if (resolved_path != Z_STRVAL_P(inc_filename)) { 3806 efree(resolved_path);
|
H A D | zend_vm_execute.h | 2678 char *resolved_path; in ZEND_INCLUDE_OR_EVAL_SPEC_CONST_HANDLER() local 2681 if (resolved_path) { in ZEND_INCLUDE_OR_EVAL_SPEC_CONST_HANDLER() 2710 efree(resolved_path); in ZEND_INCLUDE_OR_EVAL_SPEC_CONST_HANDLER() 7989 char *resolved_path; in ZEND_INCLUDE_OR_EVAL_SPEC_TMP_HANDLER() local 7992 if (resolved_path) { in ZEND_INCLUDE_OR_EVAL_SPEC_TMP_HANDLER() 8021 efree(resolved_path); in ZEND_INCLUDE_OR_EVAL_SPEC_TMP_HANDLER() 13306 char *resolved_path; in ZEND_INCLUDE_OR_EVAL_SPEC_VAR_HANDLER() local 13309 if (resolved_path) { in ZEND_INCLUDE_OR_EVAL_SPEC_VAR_HANDLER() 13338 efree(resolved_path); in ZEND_INCLUDE_OR_EVAL_SPEC_VAR_HANDLER() 30976 char *resolved_path; in ZEND_INCLUDE_OR_EVAL_SPEC_CV_HANDLER() local [all …]
|