/PHP-7.2/TSRM/ |
H A D | tsrm_config_common.h | 42 #ifndef MAXPATHLEN 45 # define MAXPATHLEN PHP_WIN32_IOUTIL_MAXPATHLEN macro 47 # define MAXPATHLEN PATH_MAX macro 49 # define MAXPATHLEN MAX_PATH macro 51 # define MAXPATHLEN 256 macro
|
/PHP-7.2/main/ |
H A D | fopen_wrappers.c | 138 char resolved_name[MAXPATHLEN]; 141 char path_tmp[MAXPATHLEN]; 172 char buf[MAXPATHLEN]; 478 char trypath[MAXPATHLEN]; 535 …if (filename_length > (MAXPATHLEN - 2) || (end-ptr) > MAXPATHLEN || (end-ptr) + 1 + (size_t)filena… 546 …if (filename_length > (MAXPATHLEN - 2) || len > MAXPATHLEN || len + 1 + (size_t)filename_length + … 625 char trypath[MAXPATHLEN]; 686 if (snprintf(trypath, MAXPATHLEN, "%s/%s", ptr, filename) >= MAXPATHLEN) { 763 char cwd[MAXPATHLEN]; 796 copy_len = path_len > MAXPATHLEN - 1 ? MAXPATHLEN - 1 : path_len; [all …]
|
H A D | php_open_temporary_file.c | 96 wchar_t *cwdw, *pfxw, pathw[MAXPATHLEN]; in php_do_open_temporary_file() 98 char opened_path[MAXPATHLEN]; in php_do_open_temporary_file() 101 char cwd[MAXPATHLEN]; in php_do_open_temporary_file() 123 if (!VCWD_GETCWD(cwd, MAXPATHLEN)) { in php_do_open_temporary_file() 142 …if (snprintf(opened_path, MAXPATHLEN, "%s%s%sXXXXXX", new_state.cwd, trailing_slash, pfx) >= MAXPA… in php_do_open_temporary_file() 160 if (!opened_path || opened_path_len >= MAXPATHLEN) { in php_do_open_temporary_file() 237 wchar_t sTemp[MAXPATHLEN]; in php_get_temporary_directory() 239 size_t len = GetTempPathW(MAXPATHLEN, sTemp); in php_get_temporary_directory()
|
H A D | php_ini.c | 452 char phprc_path[MAXPATHLEN]; in php_init_config() 493 search_path_size = MAXPATHLEN * 4 + (int)strlen(env_location) + 3 + 1; in php_init_config() 545 default_location = (char *) emalloc(MAXPATHLEN + 1); in php_init_config() 547 if (0 < GetWindowsDirectory(default_location, MAXPATHLEN)) { in php_init_config() 557 if (0 < GetSystemWindowsDirectory(default_location, MAXPATHLEN)) { in php_init_config() 661 char ini_file[MAXPATHLEN]; in php_init_config() 699 snprintf(ini_file, MAXPATHLEN, "%s%s", debpath, namelist[i]->d_name); in php_init_config() 791 char ini_file[MAXPATHLEN]; in php_parse_user_ini_file() 848 char path_bak[MAXPATHLEN]; 853 if (path_len >= MAXPATHLEN) { [all …]
|
H A D | php.h | 317 #ifndef MAXPATHLEN 320 # define MAXPATHLEN PHP_WIN32_IOUTIL_MAXPATHLEN macro 322 # define MAXPATHLEN PATH_MAX 324 # define MAXPATHLEN MAX_PATH 326 # define MAXPATHLEN 256 /* Should be safe for any weird systems that do not define it */
|
/PHP-7.2/ext/standard/ |
H A D | link.c | 59 char buff[MAXPATHLEN]; in PHP_FUNCTION() 70 ret = php_sys_readlink(link, buff, MAXPATHLEN-1); in PHP_FUNCTION() 124 char source_p[MAXPATHLEN]; in PHP_FUNCTION() 125 char dest_p[MAXPATHLEN]; in PHP_FUNCTION() 126 char dirname[MAXPATHLEN]; in PHP_FUNCTION() 183 char source_p[MAXPATHLEN]; in PHP_FUNCTION() 184 char dest_p[MAXPATHLEN]; in PHP_FUNCTION()
|
H A D | link_win32.c | 67 char target[MAXPATHLEN]; in PHP_FUNCTION() 77 if (php_sys_readlink(link, target, MAXPATHLEN) == -1) { in PHP_FUNCTION() 126 char source_p[MAXPATHLEN]; in PHP_FUNCTION() 127 char dest_p[MAXPATHLEN]; in PHP_FUNCTION() 128 char dirname[MAXPATHLEN]; in PHP_FUNCTION() 208 char source_p[MAXPATHLEN]; in PHP_FUNCTION() 209 char dest_p[MAXPATHLEN]; in PHP_FUNCTION()
|
H A D | dir.c | 360 char path[MAXPATHLEN]; in PHP_FUNCTION() 368 ret = VCWD_GETCWD(path, MAXPATHLEN); in PHP_FUNCTION() 428 char cwd[MAXPATHLEN]; in PHP_FUNCTION() 429 char work_pattern[MAXPATHLEN]; in PHP_FUNCTION() 446 if (pattern_len >= MAXPATHLEN) { in PHP_FUNCTION() 447 …docref(NULL, E_WARNING, "Pattern exceeds the maximum allowed length of %d characters", MAXPATHLEN); in PHP_FUNCTION() 458 result = VCWD_GETCWD(cwd, MAXPATHLEN); in PHP_FUNCTION() 469 snprintf(work_pattern, MAXPATHLEN, "%s%c%s", cwd, DEFAULT_SLASH, pattern); in PHP_FUNCTION()
|
H A D | dl.c | 65 if (filename_len >= MAXPATHLEN) { in PHP_FUNCTION() 66 …cref(NULL, E_WARNING, "File name exceeds the maximum allowed length of %d characters", MAXPATHLEN); in PHP_FUNCTION()
|
/PHP-7.2/win32/ |
H A D | param.h | 13 #ifndef MAXPATHLEN 15 #define MAXPATHLEN PHP_WIN32_IOUTIL_MAXPATHLEN macro
|
H A D | glob.c | 170 Char *bufnext, *bufend, patbuf[MAXPATHLEN]; 191 bufend = bufnext + MAXPATHLEN - 1; 254 Char patbuf[MAXPATHLEN]; 441 Char *bufnext, patbuf[MAXPATHLEN]; 535 Char pathbuf[MAXPATHLEN]; 540 return(glob2(pathbuf, pathbuf+MAXPATHLEN-1, 541 pathbuf, pathbuf+MAXPATHLEN-1, 625 char buf[MAXPATHLEN]; 837 char buf[MAXPATHLEN]; 858 char buf[MAXPATHLEN]; [all …]
|
H A D | registry.c | 227 char tmp_buf[MAXPATHLEN], *cwd; in UpdateIniFromRegistry() 231 if (!VCWD_GETCWD(tmp_buf, MAXPATHLEN)) { in UpdateIniFromRegistry() 290 DWORD buflen = MAXPATHLEN; in GetIniPathFromRegistry() 291 reg_location = emalloc(MAXPATHLEN+1); in GetIniPathFromRegistry()
|
H A D | ioutil.h | 68 #if !defined(MAXPATHLEN) || MAXPATHLEN < PHP_WIN32_IOUTIL_MAXPATHLEN 69 # undef MAXPATHLEN 70 # define MAXPATHLEN PHP_WIN32_IOUTIL_MAXPATHLEN macro
|
/PHP-7.2/ext/phar/tests/ |
H A D | bug74991.phpt | 13 …_path 1 byte larger (=OVERFLOW) than the MAXPATHLEN, the include_path will then be truncated to 40… 14 $p['some/file'] = "<?php const MAXPATHLEN = 4096, OVERFLOW = 1, PATH = 'path'; set_include_path(str…
|
/PHP-7.2/ext/opcache/ |
H A D | ZendAccelerator.h | 77 # ifndef MAXPATHLEN 79 # define MAXPATHLEN PHP_WIN32_IOUTIL_MAXPATHLEN macro 83 # ifndef MAXPATHLEN 84 # define MAXPATHLEN 4096 macro 228 char key[MAXPATHLEN * 8];
|
H A D | shared_alloc_win32.c | 80 static char newname[MAXPATHLEN + UNLEN + 4 + 1 + 32]; in create_name_with_username() 96 static char windir[MAXPATHLEN+UNLEN + 3 + sizeof("\\\\@") + 1 + 32]; in get_mmap_base_file() 104 GetTempPath(MAXPATHLEN, windir); in get_mmap_base_file()
|
H A D | zend_accelerator_blacklist.c | 232 char buf[MAXPATHLEN + 1], real_path[MAXPATHLEN + 1], *blacklist_path = NULL; in zend_accel_blacklist_loadone() 251 while (fgets(buf, MAXPATHLEN, fp) != NULL) { in zend_accel_blacklist_loadone()
|
/PHP-7.2/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-7.2/ext/session/ |
H A D | mod_files.c | 158 char buf[MAXPATHLEN]; in ps_files_open() 178 …path. Too short session ID, invalid save_path or path lentgth exceeds MAXPATHLEN(%d)", MAXPATHLEN); in ps_files_open() 287 char dentry[sizeof(struct dirent) + MAXPATHLEN]; in ps_files_cleanup_dir() 290 char buf[MAXPATHLEN]; in ps_files_cleanup_dir() 305 if (dirname_len >= MAXPATHLEN) { in ps_files_cleanup_dir() 321 if (entry_len + dirname_len + 2 < MAXPATHLEN) { in ps_files_cleanup_dir() 345 char buf[MAXPATHLEN]; in ps_files_key_exists() 573 char buf[MAXPATHLEN]; in PS_UPDATE_TIMESTAMP_FUNC() 611 char buf[MAXPATHLEN]; in PS_DESTROY_FUNC()
|
/PHP-7.2/Zend/ |
H A D | zend_virtual_cwd.c | 235 if (!ret || ret_len >= MAXPATHLEN) { in php_sys_readlink() 284 wchar_t cur_path[MAXPATHLEN+1]; in php_sys_stat_ex() 409 char cwd[MAXPATHLEN]; in virtual_cwd_main_cwd_init() 878 wchar_t tmpsubstname[MAXPATHLEN]; in tsrm_realpath_r() 1071 if(i + j >= MAXPATHLEN - 1) { in tsrm_realpath_r() 1130 if (i + j >= MAXPATHLEN-1) { in tsrm_realpath_r() 1222 char resolved_path[MAXPATHLEN]; in virtual_file_ex() 1443 char cwd[MAXPATHLEN]; in virtual_realpath() 1462 int len = new_state.cwd_length>MAXPATHLEN-1?MAXPATHLEN-1:new_state.cwd_length; in virtual_realpath() 1913 char cwd[MAXPATHLEN]; in tsrm_realpath() [all …]
|
/PHP-7.2/ext/zip/ |
H A D | php_zip.c | 150 char file_dirname[MAXPATHLEN]; in php_zip_extract_file() 226 } else if (len > MAXPATHLEN) { in php_zip_extract_file() 287 char resolved_path[MAXPATHLEN]; in php_zip_add_file() 515 char cwd[MAXPATHLEN]; in php_zip_glob() 518 char work_pattern[MAXPATHLEN]; in php_zip_glob() 525 if (pattern_len >= MAXPATHLEN) { in php_zip_glob() 621 char cwd[MAXPATHLEN]; in php_zip_pcre() 623 char work_path[MAXPATHLEN]; in php_zip_pcre() 669 char fullpath[MAXPATHLEN]; in php_zip_pcre() 1141 char resolved_path[MAXPATHLEN + 1]; in PHP_NAMED_FUNCTION() [all …]
|
H A D | zip_stream.c | 130 char file_dirname[MAXPATHLEN]; in php_zip_ops_stat() 153 if (path_len >= MAXPATHLEN) { in php_zip_ops_stat() 272 char file_dirname[MAXPATHLEN]; in php_stream_zip_opener() 298 if (path_len >= MAXPATHLEN || mode[0] != 'r') { in php_stream_zip_opener()
|
/PHP-7.2/ext/intl/idn/ |
H A D | idn.c | 206 UChar converted[MAXPATHLEN]; in php_intl_idn_to() 234 …converted_ret_len = uidna_IDNToASCII(ustring, ustring_len, converted, MAXPATHLEN, (int32_t)option,… in php_intl_idn_to() 236 …converted_ret_len = uidna_IDNToUnicode(ustring, ustring_len, converted, MAXPATHLEN, (int32_t)optio… in php_intl_idn_to()
|
/PHP-7.2/sapi/phpdbg/ |
H A D | phpdbg_webdata_transfer.c | 106 char path[MAXPATHLEN]; in phpdbg_webdata_compress() 109 ret = VCWD_GETCWD(path, MAXPATHLEN); in phpdbg_webdata_compress()
|
/PHP-7.2/ext/session/tests/ |
H A D | 016.phpt | 25 … path. Too short session ID, invalid save_path or path lentgth exceeds MAXPATHLEN(%d) in %s on lin…
|