/PHP-8.3/main/ |
H A D | fopen_wrappers.c | 147 char path_tmp[MAXPATHLEN + 1]; 161 if (path_len > (MAXPATHLEN - 1)) { 178 char buf[MAXPATHLEN]; 503 char trypath[MAXPATHLEN]; 556 …if (filename_length > (MAXPATHLEN - 2) || (end-ptr) > MAXPATHLEN || (end-ptr) + 1 + filename_lengt… 567 …if (filename_length > (MAXPATHLEN - 2) || len > MAXPATHLEN || len + 1 + filename_length + 1 >= MAX… 650 char trypath[MAXPATHLEN]; 711 if (snprintf(trypath, MAXPATHLEN, "%s/%s", ptr, filename) >= MAXPATHLEN) { 784 char cwd[MAXPATHLEN]; 817 copy_len = path_len > MAXPATHLEN - 1 ? MAXPATHLEN - 1 : path_len; [all …]
|
H A D | php_open_temporary_file.c | 92 wchar_t *cwdw, *pfxw, pathw[MAXPATHLEN]; in php_do_open_temporary_file() 94 char opened_path[MAXPATHLEN]; in php_do_open_temporary_file() 97 char cwd[MAXPATHLEN]; in php_do_open_temporary_file() 119 if (!VCWD_GETCWD(cwd, MAXPATHLEN)) { in php_do_open_temporary_file() 138 …if (snprintf(opened_path, MAXPATHLEN, "%s%s%sXXXXXX", new_state.cwd, trailing_slash, pfx) >= MAXPA… in php_do_open_temporary_file() 156 if (!opened_path || opened_path_len >= MAXPATHLEN) { in php_do_open_temporary_file() 233 wchar_t sTemp[MAXPATHLEN]; in php_get_temporary_directory() 235 size_t len = GetTempPathW(MAXPATHLEN, sTemp); in php_get_temporary_directory()
|
H A D | php_ini.c | 440 char phprc_path[MAXPATHLEN]; in php_init_config() 481 search_path_size = MAXPATHLEN * 4 + (int)strlen(env_location) + 3 + 1; in php_init_config() 522 default_location = (char *) emalloc(MAXPATHLEN + 1); in php_init_config() 524 if (0 < GetWindowsDirectory(default_location, MAXPATHLEN)) { in php_init_config() 531 if (0 < GetSystemWindowsDirectory(default_location, MAXPATHLEN)) { in php_init_config() 636 char ini_file[MAXPATHLEN]; in php_init_config() 672 snprintf(ini_file, MAXPATHLEN, "%s%s", debpath, namelist[i]->d_name); in php_init_config() 762 char ini_file[MAXPATHLEN]; in php_parse_user_ini_file() 828 char path_bak[MAXPATHLEN]; 833 if (path_len >= MAXPATHLEN) { [all …]
|
H A D | php.h | 268 #ifndef MAXPATHLEN 271 # define MAXPATHLEN PHP_WIN32_IOUTIL_MAXPATHLEN macro 273 # define MAXPATHLEN PATH_MAX 275 # define MAXPATHLEN MAX_PATH 277 # define MAXPATHLEN 256 /* Should be safe for any weird systems that do not define it */
|
/PHP-8.3/ext/standard/ |
H A D | link.c | 63 char buff[MAXPATHLEN]; in PHP_FUNCTION() 74 ret = php_sys_readlink(link, buff, MAXPATHLEN-1); in PHP_FUNCTION() 130 char source_p[MAXPATHLEN]; in PHP_FUNCTION() 131 char dest_p[MAXPATHLEN]; in PHP_FUNCTION() 132 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 | dir.c | 340 char path[MAXPATHLEN]; in PHP_FUNCTION() 346 ret = VCWD_GETCWD(path, MAXPATHLEN); in PHP_FUNCTION() 403 char cwd[MAXPATHLEN]; in PHP_FUNCTION() 404 char work_pattern[MAXPATHLEN]; in PHP_FUNCTION() 422 if (pattern_len >= MAXPATHLEN) { in PHP_FUNCTION() 423 …docref(NULL, E_WARNING, "Pattern exceeds the maximum allowed length of %d characters", MAXPATHLEN); in PHP_FUNCTION() 434 result = VCWD_GETCWD(cwd, MAXPATHLEN); in PHP_FUNCTION() 445 snprintf(work_pattern, MAXPATHLEN, "%s%c%s", cwd, DEFAULT_SLASH, pattern); in PHP_FUNCTION()
|
H A D | dl.c | 56 if (filename_len >= MAXPATHLEN) { in PHP_FUNCTION() 57 …ocref(NULL, E_WARNING, "Filename exceeds the maximum allowed length of %d characters", MAXPATHLEN); in PHP_FUNCTION()
|
/PHP-8.3/win32/ |
H A D | param.h | 13 #ifndef MAXPATHLEN 15 #define MAXPATHLEN PHP_WIN32_IOUTIL_MAXPATHLEN macro
|
H A D | glob.c | 164 Char *bufnext, *bufend, patbuf[MAXPATHLEN]; in glob() 185 bufend = bufnext + MAXPATHLEN - 1; in glob() 241 Char patbuf[MAXPATHLEN]; in globexp2() 420 Char *bufnext, patbuf[MAXPATHLEN]; in glob0() 513 Char pathbuf[MAXPATHLEN]; 518 return(glob2(pathbuf, pathbuf+MAXPATHLEN-1, 519 pathbuf, pathbuf+MAXPATHLEN-1, 610 char buf[MAXPATHLEN]; in glob3() 794 char buf[MAXPATHLEN]; in g_opendir() 811 char buf[MAXPATHLEN]; in g_lstat() [all …]
|
H A D | registry.c | 225 char tmp_buf[MAXPATHLEN], *cwd; in UpdateIniFromRegistry() 229 if (!VCWD_GETCWD(tmp_buf, MAXPATHLEN)) { in UpdateIniFromRegistry() 288 DWORD buflen = MAXPATHLEN; in GetIniPathFromRegistry() 289 reg_location = emalloc(MAXPATHLEN+1); in GetIniPathFromRegistry()
|
H A D | ioutil.h | 66 #if !defined(MAXPATHLEN) || MAXPATHLEN < PHP_WIN32_IOUTIL_MAXPATHLEN 67 # undef MAXPATHLEN 68 # define MAXPATHLEN PHP_WIN32_IOUTIL_MAXPATHLEN macro 788 if (!ret_buf || ret_buf_len >= buf_len || ret_buf_len >= MAXPATHLEN) { in php_win32_ioutil_readlink()
|
/PHP-8.3/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-8.3/ext/dba/ |
H A D | dba_dbm.c | 39 snprintf(buf, MAXPATHLEN, "%s" extension, ZSTR_VAL(info->path)); \ 40 buf[MAXPATHLEN-1] = '\0'; \ 56 char buf[MAXPATHLEN]; in DBA_OPEN_FUNC() 64 char buf[MAXPATHLEN]; in DBA_OPEN_FUNC()
|
/PHP-8.3/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 227 char _key[MAXPATHLEN * 8];
|
H A D | zend_accelerator_blacklist.c | 242 char buf[MAXPATHLEN + 1], real_path[MAXPATHLEN + 1], *blacklist_path = NULL; in zend_accel_blacklist_loadone() 261 while (fgets(buf, MAXPATHLEN, fp) != NULL) { in zend_accel_blacklist_loadone()
|
H A D | shared_alloc_mmap.c | 63 char buffer[MAXPATHLEN]; in find_prefered_mmap_base() 70 while (fgets(buffer, MAXPATHLEN, f) && sscanf(buffer, "%lx-%lx", &start, &end) == 2) { in find_prefered_mmap_base()
|
H A D | shared_alloc_win32.c | 74 static char newname[MAXPATHLEN + 1 + 32 + 1 + 20 + 1 + 32 + 1]; in create_name_with_username() 76 p += strlcpy(newname, name, MAXPATHLEN + 1); in create_name_with_username()
|
/PHP-8.3/Zend/ |
H A D | zend_virtual_cwd.c | 177 char cwd[MAXPATHLEN]; in virtual_cwd_main_cwd_init() 523 assert(i < MAXPATHLEN); in tsrm_realpath_r() 543 assert(i < MAXPATHLEN); in tsrm_realpath_r() 547 assert(i < MAXPATHLEN); in tsrm_realpath_r() 861 if(i + j >= MAXPATHLEN - 1) { in tsrm_realpath_r() 920 if (i + j >= MAXPATHLEN-1) { in tsrm_realpath_r() 1012 char resolved_path[MAXPATHLEN]; in virtual_file_ex() 1251 char cwd[MAXPATHLEN]; in virtual_realpath() 1270 size_t len = new_state.cwd_length>MAXPATHLEN-1?MAXPATHLEN-1:new_state.cwd_length; in virtual_realpath() 1723 char cwd[MAXPATHLEN]; in tsrm_realpath() [all …]
|
H A D | zend_virtual_cwd.h | 39 #ifndef MAXPATHLEN 42 # define MAXPATHLEN PHP_WIN32_IOUTIL_MAXPATHLEN macro 44 # define MAXPATHLEN PATH_MAX macro 46 # define MAXPATHLEN MAX_PATH macro 48 # define MAXPATHLEN 256 macro
|
/PHP-8.3/ext/session/ |
H A D | mod_files.c | 154 char buf[MAXPATHLEN]; in ps_files_open() 174 …e path. Too short session ID, invalid save_path or path length exceeds %d characters", MAXPATHLEN); in ps_files_open() 285 char buf[MAXPATHLEN]; in ps_files_cleanup_dir() 297 if (ZSTR_LEN(dirname) >= MAXPATHLEN) { in ps_files_cleanup_dir() 313 if (entry_len + ZSTR_LEN(dirname) + 2 < MAXPATHLEN) { in ps_files_cleanup_dir() 337 char buf[MAXPATHLEN]; in ps_files_key_exists() 564 char buf[MAXPATHLEN]; in PS_UPDATE_TIMESTAMP_FUNC() 595 char buf[MAXPATHLEN]; in PS_DESTROY_FUNC()
|
/PHP-8.3/ext/zip/ |
H A D | php_zip.c | 135 char file_dirname[MAXPATHLEN]; in php_zip_extract_file() 219 } else if (len > MAXPATHLEN) { in php_zip_extract_file() 291 char resolved_path[MAXPATHLEN]; in php_zip_add_file() 621 char cwd[MAXPATHLEN]; in php_zip_glob() 622 char work_pattern[MAXPATHLEN]; in php_zip_glob() 629 if (pattern_len >= MAXPATHLEN) { in php_zip_glob() 726 char cwd[MAXPATHLEN]; in php_zip_pcre() 727 char work_path[MAXPATHLEN]; in php_zip_pcre() 773 char fullpath[MAXPATHLEN]; in php_zip_pcre() 1171 char resolved_path[MAXPATHLEN + 1]; in PHP_FUNCTION() [all …]
|
H A D | zip_stream.c | 128 char file_dirname[MAXPATHLEN]; in php_zip_ops_stat() 151 if (path_len >= MAXPATHLEN) { in php_zip_ops_stat() 287 char file_dirname[MAXPATHLEN]; in php_stream_zip_opener() 313 if (path_len >= MAXPATHLEN || mode[0] != 'r') { in php_stream_zip_opener()
|
/PHP-8.3/ext/gettext/ |
H A D | gettext.c | 170 char *retval, dir_name[MAXPATHLEN]; in PHP_FUNCTION() 191 } else if (!VCWD_GETCWD(dir_name, MAXPATHLEN)) { in PHP_FUNCTION()
|
/PHP-8.3/main/streams/ |
H A D | plain_wrapper.c | 1104 char realpath[MAXPATHLEN]; in _php_stream_fopen() 1380 char buf[MAXPATHLEN]; in php_plain_files_mkdir() 1599 char trypath[MAXPATHLEN]; in _php_stream_fopen_with_path() 1656 if (snprintf(trypath, MAXPATHLEN, "%s%s", cwd, filename) >= MAXPATHLEN) { in _php_stream_fopen_with_path() 1657 php_error_docref(NULL, E_NOTICE, "%s/%s path was truncated to %d", cwd, filename, MAXPATHLEN); in _php_stream_fopen_with_path() 1711 if (snprintf(trypath, MAXPATHLEN, "%s/%s", ptr, filename) >= MAXPATHLEN) { in _php_stream_fopen_with_path() 1712 php_error_docref(NULL, E_NOTICE, "%s/%s path was truncated to %d", ptr, filename, MAXPATHLEN); in _php_stream_fopen_with_path()
|
/PHP-8.3/ext/xmlreader/ |
H A D | php_xmlreader.c | 264 char resolved_path[MAXPATHLEN + 1]; in _xmlreader_get_relaxNG() 268 valid_file = _xmlreader_get_valid_file_path(source, resolved_path, MAXPATHLEN ); in _xmlreader_get_relaxNG() 844 char resolved_path[MAXPATHLEN + 1]; in PHP_METHOD() 868 valid_file = _xmlreader_get_valid_file_path(source, resolved_path, MAXPATHLEN ); in PHP_METHOD() 1027 char *directory=NULL, resolved_path[MAXPATHLEN + 1]; in PHP_METHOD() 1057 directory = VCWD_GETCWD(resolved_path, MAXPATHLEN); in PHP_METHOD()
|