/PHP-8.1/main/ |
H A D | fopen_wrappers.c | 135 char path_tmp[MAXPATHLEN + 1]; 149 if (path_len > (MAXPATHLEN - 1)) { 166 char buf[MAXPATHLEN]; 479 char trypath[MAXPATHLEN]; 532 …if (filename_length > (MAXPATHLEN - 2) || (end-ptr) > MAXPATHLEN || (end-ptr) + 1 + filename_lengt… 543 …if (filename_length > (MAXPATHLEN - 2) || len > MAXPATHLEN || len + 1 + filename_length + 1 >= MAX… 626 char trypath[MAXPATHLEN]; 687 if (snprintf(trypath, MAXPATHLEN, "%s/%s", ptr, filename) >= MAXPATHLEN) { 760 char cwd[MAXPATHLEN]; 793 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 | 430 char phprc_path[MAXPATHLEN]; in php_init_config() 471 search_path_size = MAXPATHLEN * 4 + (int)strlen(env_location) + 3 + 1; in php_init_config() 523 default_location = (char *) emalloc(MAXPATHLEN + 1); in php_init_config() 525 if (0 < GetWindowsDirectory(default_location, MAXPATHLEN)) { in php_init_config() 535 if (0 < GetSystemWindowsDirectory(default_location, MAXPATHLEN)) { in php_init_config() 646 char ini_file[MAXPATHLEN]; in php_init_config() 682 snprintf(ini_file, MAXPATHLEN, "%s%s", debpath, namelist[i]->d_name); in php_init_config() 772 char ini_file[MAXPATHLEN]; in php_parse_user_ini_file() 838 char path_bak[MAXPATHLEN]; 843 if (path_len >= MAXPATHLEN) { [all …]
|
H A D | php.h | 266 #ifndef MAXPATHLEN 269 # define MAXPATHLEN PHP_WIN32_IOUTIL_MAXPATHLEN macro 271 # define MAXPATHLEN PATH_MAX 273 # define MAXPATHLEN MAX_PATH 275 # define MAXPATHLEN 256 /* Should be safe for any weird systems that do not define it */
|
/PHP-8.1/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.1/win32/ |
H A D | param.h | 13 #ifndef MAXPATHLEN 15 #define MAXPATHLEN PHP_WIN32_IOUTIL_MAXPATHLEN macro
|
H A D | glob.c | 168 Char *bufnext, *bufend, patbuf[MAXPATHLEN]; 189 bufend = bufnext + MAXPATHLEN - 1; 252 Char patbuf[MAXPATHLEN]; 439 Char *bufnext, patbuf[MAXPATHLEN]; 533 Char pathbuf[MAXPATHLEN]; 538 return(glob2(pathbuf, pathbuf+MAXPATHLEN-1, 539 pathbuf, pathbuf+MAXPATHLEN-1, 640 char buf[MAXPATHLEN]; 835 char buf[MAXPATHLEN]; 856 char buf[MAXPATHLEN]; [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.1/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.1/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_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.1/ext/dba/ |
H A D | dba_dbm.c | 42 snprintf(buf, MAXPATHLEN, "%s" extension, info->path); \ 43 buf[MAXPATHLEN-1] = '\0'; \ 63 char buf[MAXPATHLEN]; in DBA_OPEN_FUNC() 71 char buf[MAXPATHLEN]; in DBA_OPEN_FUNC()
|
/PHP-8.1/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() 642 wchar_t tmpsubstname[MAXPATHLEN]; in tsrm_realpath_r() 860 if(i + j >= MAXPATHLEN - 1) { in tsrm_realpath_r() 919 if (i + j >= MAXPATHLEN-1) { in tsrm_realpath_r() 1241 char cwd[MAXPATHLEN]; in virtual_realpath() 1260 size_t len = new_state.cwd_length>MAXPATHLEN-1?MAXPATHLEN-1:new_state.cwd_length; in virtual_realpath() 1713 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.1/ext/session/ |
H A D | mod_files.c | 156 char buf[MAXPATHLEN]; in ps_files_open() 176 …e path. Too short session ID, invalid save_path or path length exceeds %d characters", MAXPATHLEN); in ps_files_open() 287 char buf[MAXPATHLEN]; in ps_files_cleanup_dir() 302 if (dirname_len >= MAXPATHLEN) { in ps_files_cleanup_dir() 318 if (entry_len + dirname_len + 2 < MAXPATHLEN) { in ps_files_cleanup_dir() 342 char buf[MAXPATHLEN]; in ps_files_key_exists() 570 char buf[MAXPATHLEN]; in PS_UPDATE_TIMESTAMP_FUNC() 601 char buf[MAXPATHLEN]; in PS_DESTROY_FUNC()
|
/PHP-8.1/ext/zip/ |
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() 251 char file_dirname[MAXPATHLEN]; in php_stream_zip_opener() 277 if (path_len >= MAXPATHLEN || mode[0] != 'r') { in php_stream_zip_opener()
|
H A D | php_zip.c | 134 char file_dirname[MAXPATHLEN]; in php_zip_extract_file() 212 } else if (len > MAXPATHLEN) { in php_zip_extract_file() 284 char resolved_path[MAXPATHLEN]; in php_zip_add_file() 609 char cwd[MAXPATHLEN]; in php_zip_glob() 610 char work_pattern[MAXPATHLEN]; in php_zip_glob() 617 if (pattern_len >= MAXPATHLEN) { in php_zip_glob() 714 char cwd[MAXPATHLEN]; in php_zip_pcre() 715 char work_path[MAXPATHLEN]; in php_zip_pcre() 761 char fullpath[MAXPATHLEN]; in php_zip_pcre() 1160 char resolved_path[MAXPATHLEN + 1]; in PHP_FUNCTION() [all …]
|
/PHP-8.1/ext/gettext/ |
H A D | gettext.c | 166 char *retval, dir_name[MAXPATHLEN]; in PHP_FUNCTION() 187 } else if (!VCWD_GETCWD(dir_name, MAXPATHLEN)) { in PHP_FUNCTION()
|
/PHP-8.1/main/streams/ |
H A D | plain_wrapper.c | 1095 char realpath[MAXPATHLEN]; in _php_stream_fopen() 1366 char buf[MAXPATHLEN]; in php_plain_files_mkdir() 1585 char trypath[MAXPATHLEN]; in _php_stream_fopen_with_path() 1642 if (snprintf(trypath, MAXPATHLEN, "%s%s", cwd, filename) >= MAXPATHLEN) { in _php_stream_fopen_with_path() 1643 php_error_docref(NULL, E_NOTICE, "%s/%s path was truncated to %d", cwd, filename, MAXPATHLEN); in _php_stream_fopen_with_path() 1697 if (snprintf(trypath, MAXPATHLEN, "%s/%s", ptr, filename) >= MAXPATHLEN) { in _php_stream_fopen_with_path() 1698 php_error_docref(NULL, E_NOTICE, "%s/%s path was truncated to %d", ptr, filename, MAXPATHLEN); in _php_stream_fopen_with_path()
|
/PHP-8.1/ext/xmlreader/ |
H A D | php_xmlreader.c | 265 char resolved_path[MAXPATHLEN + 1]; in _xmlreader_get_relaxNG() 269 valid_file = _xmlreader_get_valid_file_path(source, resolved_path, MAXPATHLEN ); in _xmlreader_get_relaxNG() 846 char resolved_path[MAXPATHLEN + 1]; in PHP_METHOD() 870 valid_file = _xmlreader_get_valid_file_path(source, resolved_path, MAXPATHLEN ); in PHP_METHOD() 1029 char *directory=NULL, resolved_path[MAXPATHLEN + 1]; in PHP_METHOD() 1059 directory = VCWD_GETCWD(resolved_path, MAXPATHLEN); in PHP_METHOD()
|
/PHP-8.1/ext/intl/resourcebundle/ |
H A D | resourcebundle_class.c | 112 if (bundlename_len >= MAXPATHLEN) { in resourcebundle_ctor() 304 if (bundlename_len >= MAXPATHLEN) { in PHP_FUNCTION()
|