/PHP-5.3/TSRM/ |
H A D | tsrm_config_common.h | 44 #ifndef MAXPATHLEN 46 # define MAXPATHLEN PATH_MAX macro 48 # define MAXPATHLEN MAX_PATH macro 50 # define MAXPATHLEN 256 macro
|
H A D | tsrm_virtual_cwd.c | 254 if(dwRet >= MAXPATHLEN) { in php_sys_readlink() 263 char tmp[MAXPATHLEN]; in php_sys_readlink() 315 char cur_path[MAXPATHLEN+1]; in php_sys_stat_ex() 451 char cwd[MAXPATHLEN]; in virtual_cwd_startup() 1088 if (i + j >= MAXPATHLEN-1) { in tsrm_realpath_r() 1167 char resolved_path[MAXPATHLEN]; in virtual_file_ex() 1417 char cwd[MAXPATHLEN]; in virtual_realpath() 1444 int len = new_state.cwd_length>MAXPATHLEN-1?MAXPATHLEN-1:new_state.cwd_length; in virtual_realpath() 1854 char prev_cwd[MAXPATHLEN]; in virtual_popen() 1942 char cwd[MAXPATHLEN]; in tsrm_realpath() [all …]
|
/PHP-5.3/main/ |
H A D | fopen_wrappers.c | 145 char resolved_name[MAXPATHLEN]; 146 char resolved_basedir[MAXPATHLEN]; 148 char path_tmp[MAXPATHLEN]; 182 char buf[MAXPATHLEN]; 539 char resolved_path[MAXPATHLEN]; 540 char trypath[MAXPATHLEN]; 683 char trypath[MAXPATHLEN]; 764 if (snprintf(trypath, MAXPATHLEN, "%s/%s", ptr, filename) >= MAXPATHLEN) { 848 char cwd[MAXPATHLEN]; 876 copy_len = strlen(filepath) > MAXPATHLEN - 1 ? MAXPATHLEN - 1 : strlen(filepath); [all …]
|
H A D | safe_mode.c | 53 char path[MAXPATHLEN]; in php_checkuid_ex() 54 char *s, filenamecopy[MAXPATHLEN]; in php_checkuid_ex() 63 if (strlcpy(filenamecopy, filename, MAXPATHLEN)>=MAXPATHLEN) { in php_checkuid_ex() 81 char ftest[MAXPATHLEN]; in php_checkuid_ex()
|
H A D | php_ini.c | 402 char phprc_path[MAXPATHLEN]; in php_init_config() 475 binary_location = (char *) emalloc(MAXPATHLEN); in php_init_config() 476 if (GetModuleFileName(0, binary_location, MAXPATHLEN) == 0) { in php_init_config() 482 binary_location = (char *)emalloc(MAXPATHLEN); in php_init_config() 488 char *search_dir, search_path[MAXPATHLEN]; in php_init_config() 531 default_location = (char *) emalloc(MAXPATHLEN + 1); in php_init_config() 533 if (0 < GetWindowsDirectory(default_location, MAXPATHLEN)) { in php_init_config() 651 char ini_file[MAXPATHLEN]; in php_init_config() 763 char ini_file[MAXPATHLEN]; in php_parse_user_ini_file() 826 char path_bak[MAXPATHLEN]; in php_ini_activate_per_dir_config() [all …]
|
H A D | php_open_temporary_file.c | 101 char cwd[MAXPATHLEN]; in php_do_open_temporary_file() 123 if (!VCWD_GETCWD(cwd, MAXPATHLEN)) { in php_do_open_temporary_file() 141 if (spprintf(&opened_path, 0, "%s%s%sXXXXXX", new_state.cwd, trailing_slash, pfx) >= MAXPATHLEN) { in php_do_open_temporary_file()
|
H A D | php.h | 246 #ifndef MAXPATHLEN 248 # define MAXPATHLEN PATH_MAX macro 250 # define MAXPATHLEN MAX_PATH 252 # define MAXPATHLEN 256 /* Should be safe for any weird systems that do not define it */
|
H A D | php_scandir.c | 66 char entry[sizeof(struct dirent)+MAXPATHLEN]; in php_scandir()
|
/PHP-5.3/ext/standard/ |
H A D | link_win32.c | 60 char target[MAXPATHLEN]; in PHP_FUNCTION() 70 if (php_sys_readlink(link, target, MAXPATHLEN) == -1) { in PHP_FUNCTION() 108 char source_p[MAXPATHLEN]; in PHP_FUNCTION() 109 char dest_p[MAXPATHLEN]; in PHP_FUNCTION() 110 char dirname[MAXPATHLEN]; in PHP_FUNCTION() 188 char source_p[MAXPATHLEN]; in PHP_FUNCTION() 189 char dest_p[MAXPATHLEN]; in PHP_FUNCTION()
|
H A D | link.c | 60 char buff[MAXPATHLEN]; in PHP_FUNCTION() 79 ret = php_sys_readlink(link, buff, MAXPATHLEN-1); in PHP_FUNCTION() 133 char source_p[MAXPATHLEN]; in PHP_FUNCTION() 134 char dest_p[MAXPATHLEN]; in PHP_FUNCTION() 135 char dirname[MAXPATHLEN]; in PHP_FUNCTION() 207 char source_p[MAXPATHLEN]; in PHP_FUNCTION() 208 char dest_p[MAXPATHLEN]; in PHP_FUNCTION()
|
H A D | dir.c | 359 char path[MAXPATHLEN]; in PHP_FUNCTION() 367 ret = VCWD_GETCWD(path, MAXPATHLEN); in PHP_FUNCTION() 427 char cwd[MAXPATHLEN]; in PHP_FUNCTION() 428 char work_pattern[MAXPATHLEN]; in PHP_FUNCTION() 447 if (pattern_len >= MAXPATHLEN) { in PHP_FUNCTION() 448 …L TSRMLS_CC, E_WARNING, "Pattern exceeds the maximum allowed length of %d characters", MAXPATHLEN); in PHP_FUNCTION() 459 result = VCWD_GETCWD(cwd, MAXPATHLEN); in PHP_FUNCTION() 470 snprintf(work_pattern, MAXPATHLEN, "%s%c%s", cwd, DEFAULT_SLASH, pattern); in PHP_FUNCTION()
|
H A D | dl.c | 71 if (filename_len >= MAXPATHLEN) { in PHP_FUNCTION() 72 …TSRMLS_CC, E_WARNING, "File name exceeds the maximum allowed length of %d characters", MAXPATHLEN); in PHP_FUNCTION()
|
/PHP-5.3/win32/ |
H A D | param.h | 11 #ifndef MAXPATHLEN 12 #define MAXPATHLEN _MAX_PATH macro
|
H A D | glob.c | 169 Char *bufnext, *bufend, patbuf[MAXPATHLEN]; 190 bufend = bufnext + MAXPATHLEN - 1; 253 Char patbuf[MAXPATHLEN]; 438 Char *bufnext, patbuf[MAXPATHLEN]; 532 Char pathbuf[MAXPATHLEN]; 537 return(glob2(pathbuf, pathbuf+MAXPATHLEN-1, 538 pathbuf, pathbuf+MAXPATHLEN-1, 622 char buf[MAXPATHLEN]; 834 char buf[MAXPATHLEN]; 855 char buf[MAXPATHLEN]; [all …]
|
H A D | registry.c | 218 char tmp_buf[MAXPATHLEN], *cwd; in UpdateIniFromRegistry() 222 if (!VCWD_GETCWD(tmp_buf, MAXPATHLEN)) { in UpdateIniFromRegistry() 287 DWORD buflen = MAXPATHLEN; in GetIniPathFromRegistry() 288 reg_location = emalloc(MAXPATHLEN+1); in GetIniPathFromRegistry()
|
H A D | readdir.c | 28 char resolved_path_buff[MAXPATHLEN]; in opendir()
|
/PHP-5.3/ext/intl/idn/ |
H A D | idn.c | 67 UChar converted[MAXPATHLEN]; in php_intl_idn_to() 97 …converted_ret_len = uidna_IDNToASCII(ustring, ustring_len, converted, MAXPATHLEN, (int32_t)option,… in php_intl_idn_to() 99 …converted_ret_len = uidna_IDNToUnicode(ustring, ustring_len, converted, MAXPATHLEN, (int32_t)optio… in php_intl_idn_to()
|
/PHP-5.3/ext/dba/ |
H A D | dba_dbm.c | 46 snprintf(buf, MAXPATHLEN, "%s" extension, info->path); \ 47 buf[MAXPATHLEN-1] = '\0'; \ 68 char buf[MAXPATHLEN]; in DBA_OPEN_FUNC() 76 char buf[MAXPATHLEN]; in DBA_OPEN_FUNC()
|
/PHP-5.3/ext/zip/ |
H A D | php_zip.c | 148 char file_dirname[MAXPATHLEN]; in php_zip_extract_file() 238 } else if (len > MAXPATHLEN) { in php_zip_extract_file() 312 char resolved_path[MAXPATHLEN]; in php_zip_add_file() 531 char cwd[MAXPATHLEN]; in php_zip_glob() 534 char work_pattern[MAXPATHLEN]; in php_zip_glob() 541 if (pattern_len >= MAXPATHLEN) { in php_zip_glob() 637 char cwd[MAXPATHLEN]; in php_zip_pcre() 639 char work_path[MAXPATHLEN]; in php_zip_pcre() 685 char fullpath[MAXPATHLEN]; in php_zip_pcre() 1496 char resolved_path[MAXPATHLEN]; in ZIPARCHIVE_METHOD() [all …]
|
H A D | zip_stream.c | 107 char file_dirname[MAXPATHLEN]; in php_zip_ops_stat() 129 if (path_len >= MAXPATHLEN) { in php_zip_ops_stat() 248 char file_dirname[MAXPATHLEN]; in php_stream_zip_opener() 274 if (path_len >= MAXPATHLEN || mode[0] != 'r') { in php_stream_zip_opener()
|
/PHP-5.3/ext/session/ |
H A D | mod_files.c | 148 char buf[MAXPATHLEN]; in ps_files_open() 212 char dentry[sizeof(struct dirent) + MAXPATHLEN]; in ps_files_cleanup_dir() 215 char buf[MAXPATHLEN]; in ps_files_cleanup_dir() 240 if (entry_len + dirname_len + 2 < MAXPATHLEN) { in ps_files_cleanup_dir() 426 char buf[MAXPATHLEN]; in PS_DESTROY_FUNC()
|
/PHP-5.3/sapi/phttpd/ |
H A D | phttpd.c | 195 SG(request_info).path_translated = malloc(MAXPATHLEN); in php_phttpd_request_ctor() 197 …if (url_expand(PHG(cip)->hip->url, SG(request_info).path_translated, MAXPATHLEN, &PHG(sb), NULL, N… in php_phttpd_request_ctor()
|
/PHP-5.3/ext/gettext/ |
H A D | gettext.c | 250 char *retval, dir_name[MAXPATHLEN]; in PHP_NAMED_FUNCTION() 267 } else if (!VCWD_GETCWD(dir_name, MAXPATHLEN)) { in PHP_NAMED_FUNCTION()
|
/PHP-5.3/main/streams/ |
H A D | plain_wrapper.c | 816 char entry[sizeof(struct dirent)+MAXPATHLEN]; in php_plain_files_dirstream_read() 1325 char trypath[MAXPATHLEN]; in _php_stream_fopen_with_path() 1395 if (snprintf(trypath, MAXPATHLEN, "%s%s", cwd, filename) >= MAXPATHLEN) { in _php_stream_fopen_with_path() 1396 …rror_docref(NULL TSRMLS_CC, E_NOTICE, "%s/%s path was truncated to %d", cwd, filename, MAXPATHLEN); in _php_stream_fopen_with_path() 1458 if (snprintf(trypath, MAXPATHLEN, "%s/%s", ptr, filename) >= MAXPATHLEN) { in _php_stream_fopen_with_path() 1459 …rror_docref(NULL TSRMLS_CC, E_NOTICE, "%s/%s path was truncated to %d", ptr, filename, MAXPATHLEN); in _php_stream_fopen_with_path()
|
/PHP-5.3/ext/xmlreader/ |
H A D | php_xmlreader.c | 284 char resolved_path[MAXPATHLEN + 1]; in _xmlreader_get_relaxNG() 288 valid_file = _xmlreader_get_valid_file_path(source, resolved_path, MAXPATHLEN TSRMLS_CC); in _xmlreader_get_relaxNG() 872 char resolved_path[MAXPATHLEN + 1]; in PHP_METHOD() 894 valid_file = _xmlreader_get_valid_file_path(source, resolved_path, MAXPATHLEN TSRMLS_CC); in PHP_METHOD() 1055 char *directory=NULL, resolved_path[MAXPATHLEN]; in PHP_METHOD() 1082 directory = VCWD_GETCWD(resolved_path, MAXPATHLEN); in PHP_METHOD()
|