| /PHP_TRUNK/TSRM/ |
| H A D | tsrm_virtual_cwd.c | 1154 char resolved_path[MAXPATHLEN]; local 1186 memcpy(resolved_path , path, path_length + 1); 1218 memcpy(resolved_path, state->cwd, state_cwd_length); 1219 if (resolved_path[state_cwd_length-1] == DEFAULT_SLASH) { 1220 memcpy(resolved_path + state_cwd_length, path, path_length + 1); 1223 resolved_path[state_cwd_length] = DEFAULT_SLASH; 1224 memcpy(resolved_path + state_cwd_length + 1, path, path_length + 1); 1231 resolved_path[0] = path[0]; 1232 resolved_path[1] = ':'; 1233 resolved_path[ [all...] |
| /PHP_TRUNK/ext/dom/ |
| H A D | document.c | 1498 char *_dom_get_valid_file_path(char *source, char *resolved_path, int resolved_path_len TSRMLS_DC) /* {{{ */ argument 1532 /* XXX possible buffer overflow if VCWD_REALPATH does not know size of resolved_path */ 1533 if (!VCWD_REALPATH(source, resolved_path) && !expand_filepath(source, resolved_path TSRMLS_CC)) { 1537 file_dest = resolved_path; 1556 char *directory=NULL, resolved_path[MAXPATHLEN]; local 1577 char *file_dest = _dom_get_valid_file_path(source, resolved_path, MAXPATHLEN TSRMLS_CC); 1593 directory = VCWD_GETCWD(resolved_path, MAXPATHLEN); 1595 directory = VCWD_GETWD(resolved_path); 1601 resolved_path_len = strlen(resolved_path); 1981 char resolved_path[MAXPATHLEN + 1]; local 2070 char resolved_path[MAXPATHLEN + 1]; local [all...] |
| /PHP_TRUNK/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_TRUNK/ext/xmlwriter/ |
| H A D | php_xmlwriter.c | 602 static char *_xmlwriter_get_valid_file_path(char *source, char *resolved_path, int resolved_path_len TSRMLS_DC) { argument 645 if (!VCWD_REALPATH(source, resolved_path) && !expand_filepath(source, resolved_path TSRMLS_CC)) { 661 file_dest = resolved_path; 1749 char resolved_path[MAXPATHLEN + 1]; local 1778 valid_file = _xmlwriter_get_valid_file_path(source, resolved_path, MAXPATHLEN TSRMLS_CC);
|
| /PHP_TRUNK/main/ |
| H A D | fopen_wrappers.c | 363 char *resolved_path = NULL; local 431 resolved_path = zend_resolve_path(filename, strlen(filename) TSRMLS_CC); 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_C [all...] |
| /PHP_TRUNK/ext/libxml/ |
| H A D | libxml.c | 295 char *resolved_path, *path_to_open = NULL; local 305 resolved_path = xmlURIUnescapeString(filename, 0, NULL); 308 resolved_path = (char *)filename; 315 if (resolved_path == NULL) { 325 wrapper = php_stream_locate_url_wrapper(resolved_path, &path_to_open, 0 TSRMLS_CC); 329 xmlFree(resolved_path); 339 xmlFree(resolved_path);
|
| /PHP_TRUNK/ext/xmlreader/ |
| H A D | php_xmlreader.c | 230 char *_xmlreader_get_valid_file_path(char *source, char *resolved_path, int resolved_path_len TSRMLS_DC) { argument 263 if (!VCWD_REALPATH(source, resolved_path) && !expand_filepath(source, resolved_path TSRMLS_CC)) { 267 file_dest = resolved_path; 285 char resolved_path[MAXPATHLEN + 1]; local 289 valid_file = _xmlreader_get_valid_file_path(source, resolved_path, MAXPATHLEN TSRMLS_CC); 872 char resolved_path[MAXPATHLEN + 1]; local 894 valid_file = _xmlreader_get_valid_file_path(source, resolved_path, MAXPATHLEN TSRMLS_CC); 1055 char *directory=NULL, resolved_path[MAXPATHLEN]; local 1082 directory = VCWD_GETCWD(resolved_path, MAXPATHLE [all...] |
| /PHP_TRUNK/main/streams/ |
| H A D | streams.c | 2013 char *resolved_path = NULL; local 2026 resolved_path = zend_resolve_path(path, strlen(path) TSRMLS_CC); 2027 if (resolved_path) { 2028 path = resolved_path; 2040 if (resolved_path) { 2041 efree(resolved_path); 2071 if (opened_path && !*opened_path && resolved_path) { 2072 *opened_path = resolved_path; 2073 resolved_path = NULL; 2093 if (resolved_path) { [all...] |
| /PHP_TRUNK/ext/zip/ |
| H A D | php_zip.c | 303 char resolved_path[MAXPATHLEN]; local 311 if (!expand_filepath(filename, resolved_path TSRMLS_CC)) { 315 php_stat(resolved_path, strlen(resolved_path), FS_EXISTS, &exists_flag TSRMLS_CC); 320 zs = zip_source_file(za, resolved_path, offset_start, offset_len); 1214 char resolved_path[MAXPATHLEN + 1]; local 1231 if(!expand_filepath(filename, resolved_path TSRMLS_CC)) { 1237 rsrc_int->za = zip_open(resolved_path, 0, &err); 1496 char resolved_path[MAXPATHLEN]; local 1519 if (!expand_filepath(filename, resolved_path TSRMLS_C [all...] |
| /PHP_TRUNK/ext/opcache/ |
| H A D | ZendAccelerator.c | 1727 char *resolved_path; local 1756 if ((resolved_path = accel_tsrm_realpath(trypath, len + 1 + filename_length TSRMLS_CC)) != NULL) { 1757 return resolved_path; 1797 char *resolved_path; local 1840 resolved_path = accel_php_resolve_path(filename, filename_len, ZCG(include_path) TSRMLS_CC); 1843 if (resolved_path && 1844 (bucket = zend_accel_hash_find_entry(&ZCSG(hash), resolved_path, strlen(resolved_path) + 1)) != NULL) { 1848 handle->opened_path = resolved_path; 1863 if (resolved_path) { 1967 char *resolved_path; local [all...] |
| /PHP_TRUNK/ext/standard/ |
| H A D | streamsfuncs.c | 1545 char *filename, *resolved_path; local 1552 resolved_path = zend_resolve_path(filename, filename_len TSRMLS_CC); 1554 if (resolved_path) { 1555 RETURN_STRING(resolved_path, 0);
|
| /PHP_TRUNK/ext/phar/ |
| H A D | util.c | 348 char resolved_path[MAXPATHLEN]; 407 if (tsrm_realpath(filename, resolved_path TSRMLS_CC)) { 408 return estrdup(resolved_path); 517 if (tsrm_realpath(trypath, resolved_path TSRMLS_CC)) { 518 return estrdup(resolved_path); 556 if (tsrm_realpath(trypath, resolved_path TSRMLS_CC)) { 557 return estrdup(resolved_path);
|
| /PHP_TRUNK/Zend/ |
| H A D | zend_vm_def.h | 3768 char *resolved_path; variable 3770 resolved_path = zend_resolve_path(Z_STRVAL_P(inc_filename), Z_STRLEN_P(inc_filename) TSRMLS_CC); 3771 if (resolved_path) { 3772 failure_retval = zend_hash_exists(&EG(included_files), resolved_path, strlen(resolved_path)+1); 3774 resolved_path = Z_STRVAL_P(inc_filename); 3779 } else if (SUCCESS == zend_stream_open(resolved_path, &file_handle TSRMLS_CC)) { 3782 file_handle.opened_path = estrdup(resolved_path); 3799 if (resolved_path != Z_STRVAL_P(inc_filename)) { 3800 efree(resolved_path); variable [all...] |
| H A D | zend_vm_execute.h | 2668 char *resolved_path; local 2670 resolved_path = zend_resolve_path(Z_STRVAL_P(inc_filename), Z_STRLEN_P(inc_filename) TSRMLS_CC); 2671 if (resolved_path) { 2672 failure_retval = zend_hash_exists(&EG(included_files), resolved_path, strlen(resolved_path)+1); 2674 resolved_path = Z_STRVAL_P(inc_filename); 2679 } else if (SUCCESS == zend_stream_open(resolved_path, &file_handle TSRMLS_CC)) { 2682 file_handle.opened_path = estrdup(resolved_path); 2699 if (resolved_path != Z_STRVAL_P(inc_filename)) { 2700 efree(resolved_path); 7976 char *resolved_path; local 13306 char *resolved_path; local 30929 char *resolved_path; local [all...] |