| /PHP_5_3/TSRM/ |
| H A D | tsrm_virtual_cwd.c | 1167 char resolved_path[MAXPATHLEN]; local 1200 memcpy(resolved_path , path, path_length + 1); 1232 memcpy(resolved_path, state->cwd, state_cwd_length); 1233 if (resolved_path[state_cwd_length-1] == DEFAULT_SLASH) { 1234 memcpy(resolved_path + state_cwd_length, path, path_length + 1); 1237 resolved_path[state_cwd_length] = DEFAULT_SLASH; 1238 memcpy(resolved_path + state_cwd_length + 1, path, path_length + 1); 1245 resolved_path[0] = path[0]; 1246 resolved_path[1] = ':'; 1247 resolved_path[ [all...] |
| /PHP_5_3/ext/dom/ |
| H A D | document.c | 1497 char *_dom_get_valid_file_path(char *source, char *resolved_path, int resolved_path_len TSRMLS_DC) /* {{{ */ argument 1531 /* XXX possible buffer overflow if VCWD_REALPATH does not know size of resolved_path */ 1532 if (!VCWD_REALPATH(source, resolved_path) && !expand_filepath(source, resolved_path TSRMLS_CC)) { 1536 file_dest = resolved_path; 1555 char *directory=NULL, resolved_path[MAXPATHLEN]; local 1576 char *file_dest = _dom_get_valid_file_path(source, resolved_path, MAXPATHLEN TSRMLS_CC); 1592 directory = VCWD_GETCWD(resolved_path, MAXPATHLEN); 1594 directory = VCWD_GETWD(resolved_path); 1600 resolved_path_len = strlen(resolved_path); 1980 char resolved_path[MAXPATHLEN + 1]; local 2069 char resolved_path[MAXPATHLEN + 1]; local [all...] |
| /PHP_5_3/ext/xmlreader/ |
| H A D | php_xmlreader.c | 229 char *_xmlreader_get_valid_file_path(char *source, char *resolved_path, int resolved_path_len TSRMLS_DC) { argument 262 if (!VCWD_REALPATH(source, resolved_path) && !expand_filepath(source, resolved_path TSRMLS_CC)) { 266 file_dest = resolved_path; 284 char resolved_path[MAXPATHLEN + 1]; local 288 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_5_3/ext/xmlwriter/ |
| H A D | php_xmlwriter.c | 604 static char *_xmlwriter_get_valid_file_path(char *source, char *resolved_path, int resolved_path_len TSRMLS_DC) { argument 647 if (!VCWD_REALPATH(source, resolved_path) && !expand_filepath(source, resolved_path TSRMLS_CC)) { 663 file_dest = resolved_path; 1751 char resolved_path[MAXPATHLEN + 1]; local 1780 valid_file = _xmlwriter_get_valid_file_path(source, resolved_path, MAXPATHLEN TSRMLS_CC);
|
| /PHP_5_3/main/ |
| H A D | fopen_wrappers.c | 417 char *resolved_path = NULL; local 484 resolved_path = zend_resolve_path(filename, strlen(filename) TSRMLS_CC); 487 if (!resolved_path) { 499 fp = VCWD_FOPEN(resolved_path, "rb"); 518 file_handle->opened_path = resolved_path; 539 char resolved_path[MAXPATHLEN]; local 558 if (tsrm_realpath(actual_path, resolved_path TSRMLS_CC)) { 559 return estrdup(resolved_path); 571 if (tsrm_realpath(filename, resolved_path TSRMLS_CC)) { 572 return estrdup(resolved_path); [all...] |
| /PHP_5_3/main/streams/ |
| H A D | streams.c | 1948 char *resolved_path = NULL; local 1962 resolved_path = zend_resolve_path(path, strlen(path) TSRMLS_CC); 1963 if (resolved_path) { 1964 path = resolved_path; 1976 if (resolved_path) { 1977 efree(resolved_path); 2007 if (opened_path && !*opened_path && resolved_path) { 2008 *opened_path = resolved_path; 2009 resolved_path = NULL; 2029 if (resolved_path) { [all...] |
| /PHP_5_3/ext/libxml/ |
| H A D | libxml.c | 275 char *resolved_path, *path_to_open = NULL; local 284 resolved_path = xmlURIUnescapeString(filename, 0, NULL); 287 resolved_path = (char *)filename; 294 if (resolved_path == NULL) { 304 wrapper = php_stream_locate_url_wrapper(resolved_path, &path_to_open, ENFORCE_SAFE_MODE TSRMLS_CC); 308 xmlFree(resolved_path); 318 xmlFree(resolved_path);
|
| /PHP_5_3/ext/zip/ |
| H A D | php_zip.c | 312 char resolved_path[MAXPATHLEN]; local 320 if (!expand_filepath(filename, resolved_path TSRMLS_CC)) { 324 php_stat(resolved_path, strlen(resolved_path), FS_EXISTS, &exists_flag TSRMLS_CC); 329 zs = zip_source_file(za, resolved_path, offset_start, offset_len); 1210 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 1523 if (!expand_filepath(filename, resolved_path TSRMLS_C [all...] |
| /PHP_5_3/Zend/ |
| H A D | zend_vm_def.h | 3251 char *resolved_path; variable 3253 resolved_path = zend_resolve_path(Z_STRVAL_P(inc_filename), Z_STRLEN_P(inc_filename) TSRMLS_CC); 3254 if (resolved_path) { 3255 failure_retval = zend_hash_exists(&EG(included_files), resolved_path, strlen(resolved_path)+1); 3257 resolved_path = Z_STRVAL_P(inc_filename); 3262 } else if (SUCCESS == zend_stream_open(resolved_path, &file_handle TSRMLS_CC)) { 3265 file_handle.opened_path = estrdup(resolved_path); 3282 if (resolved_path != Z_STRVAL_P(inc_filename)) { 3283 efree(resolved_path); variable [all...] |
| H A D | zend_vm_execute.h | 1921 char *resolved_path; local 1923 resolved_path = zend_resolve_path(Z_STRVAL_P(inc_filename), Z_STRLEN_P(inc_filename) TSRMLS_CC); 1924 if (resolved_path) { 1925 failure_retval = zend_hash_exists(&EG(included_files), resolved_path, strlen(resolved_path)+1); 1927 resolved_path = Z_STRVAL_P(inc_filename); 1932 } else if (SUCCESS == zend_stream_open(resolved_path, &file_handle TSRMLS_CC)) { 1935 file_handle.opened_path = estrdup(resolved_path); 1952 if (resolved_path != Z_STRVAL_P(inc_filename)) { 1953 efree(resolved_path); 5217 char *resolved_path; local 8592 char *resolved_path; local 22497 char *resolved_path; local [all...] |
| /PHP_5_3/ext/standard/ |
| H A D | streamsfuncs.c | 1504 char *filename, *resolved_path; local 1511 resolved_path = zend_resolve_path(filename, filename_len TSRMLS_CC); 1513 if (resolved_path) { 1514 RETURN_STRING(resolved_path, 0);
|