Home
last modified time | relevance | path

Searched refs:MAXPATHLEN (Results 1 – 25 of 62) sorted by relevance

123

/PHP-7.0/main/
H A Dfopen_wrappers.c140 char resolved_name[MAXPATHLEN];
143 char path_tmp[MAXPATHLEN];
174 char buf[MAXPATHLEN];
482 char trypath[MAXPATHLEN];
539 …if (filename_length > (MAXPATHLEN - 2) || (end-ptr) > MAXPATHLEN || (end-ptr) + 1 + (size_t)filena…
550 …if (filename_length > (MAXPATHLEN - 2) || len > MAXPATHLEN || len + 1 + (size_t)filename_length + …
629 char trypath[MAXPATHLEN];
690 if (snprintf(trypath, MAXPATHLEN, "%s/%s", ptr, filename) >= MAXPATHLEN) {
767 char cwd[MAXPATHLEN];
800 copy_len = path_len > MAXPATHLEN - 1 ? MAXPATHLEN - 1 : path_len;
[all …]
H A Dphp_open_temporary_file.c100 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()
141 …if (snprintf(opened_path, MAXPATHLEN, "%s%s%sXXXXXX", new_state.cwd, trailing_slash, pfx) >= MAXPA… in php_do_open_temporary_file()
H A Dphp_ini.c414 char phprc_path[MAXPATHLEN]; in php_init_config()
455 search_path_size = MAXPATHLEN * 4 + (int)strlen(env_location) + 3 + 1; in php_init_config()
507 default_location = (char *) emalloc(MAXPATHLEN + 1); in php_init_config()
509 if (0 < GetWindowsDirectory(default_location, MAXPATHLEN)) { in php_init_config()
519 if (0 < GetSystemWindowsDirectory(default_location, MAXPATHLEN)) { in php_init_config()
623 char ini_file[MAXPATHLEN]; in php_init_config()
661 snprintf(ini_file, MAXPATHLEN, "%s%s", debpath, namelist[i]->d_name); in php_init_config()
753 char ini_file[MAXPATHLEN]; in php_parse_user_ini_file()
810 char path_bak[MAXPATHLEN];
815 if (path_len >= MAXPATHLEN) {
[all …]
H A Dphp.h250 #ifndef MAXPATHLEN
252 # define MAXPATHLEN PATH_MAX macro
254 # define MAXPATHLEN MAX_PATH
256 # define MAXPATHLEN 256 /* Should be safe for any weird systems that do not define it */
H A Dphp_scandir.c66 char entry[sizeof(struct dirent)+MAXPATHLEN]; in php_scandir()
/PHP-7.0/TSRM/
H A Dtsrm_config_common.h44 #ifndef MAXPATHLEN
46 # define MAXPATHLEN PATH_MAX macro
48 # define MAXPATHLEN MAX_PATH macro
50 # define MAXPATHLEN 256 macro
/PHP-7.0/ext/standard/
H A Dlink.c59 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()
182 char source_p[MAXPATHLEN]; in PHP_FUNCTION()
183 char dest_p[MAXPATHLEN]; in PHP_FUNCTION()
H A Dlink_win32.c67 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()
206 char source_p[MAXPATHLEN]; in PHP_FUNCTION()
207 char dest_p[MAXPATHLEN]; in PHP_FUNCTION()
H A Ddir.c366 char path[MAXPATHLEN]; in PHP_FUNCTION()
374 ret = VCWD_GETCWD(path, MAXPATHLEN); in PHP_FUNCTION()
434 char cwd[MAXPATHLEN]; in PHP_FUNCTION()
435 char work_pattern[MAXPATHLEN]; in PHP_FUNCTION()
450 if (pattern_len >= MAXPATHLEN) { in PHP_FUNCTION()
451 …docref(NULL, E_WARNING, "Pattern exceeds the maximum allowed length of %d characters", MAXPATHLEN); in PHP_FUNCTION()
462 result = VCWD_GETCWD(cwd, MAXPATHLEN); in PHP_FUNCTION()
473 snprintf(work_pattern, MAXPATHLEN, "%s%c%s", cwd, DEFAULT_SLASH, pattern); in PHP_FUNCTION()
H A Ddl.c68 if (filename_len >= MAXPATHLEN) { in PHP_FUNCTION()
69 …cref(NULL, E_WARNING, "File name exceeds the maximum allowed length of %d characters", MAXPATHLEN); in PHP_FUNCTION()
/PHP-7.0/win32/
H A Dparam.h11 #ifndef MAXPATHLEN
12 #define MAXPATHLEN _MAX_PATH macro
H A Dglob.c170 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 Dregistry.c227 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()
/PHP-7.0/ext/phar/tests/
H A Dbug74991.phpt13 …_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.0/ext/dba/
H A Ddba_dbm.c46 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.0/ext/session/
H A Dmod_files.c158 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.0/ext/session/tests/
H A D016.phpt25 … path. Too short session ID, invalid save_path or path lentgth exceeds MAXPATHLEN(%d) in %s on lin…
27 … path. Too short session ID, invalid save_path or path lentgth exceeds MAXPATHLEN(%d) in %s on lin…
/PHP-7.0/Zend/
H A Dzend_virtual_cwd.c284 char tmp[MAXPATHLEN]; in php_sys_readlink()
325 char cur_path[MAXPATHLEN+1]; in php_sys_stat_ex()
460 char cwd[MAXPATHLEN]; in virtual_cwd_startup()
1060 if(i + j >= MAXPATHLEN - 1) { in tsrm_realpath_r()
1120 if (i + j >= MAXPATHLEN-1) { in tsrm_realpath_r()
1199 char resolved_path[MAXPATHLEN]; in virtual_file_ex()
1444 char cwd[MAXPATHLEN]; in virtual_realpath()
1471 int len = new_state.cwd_length>MAXPATHLEN-1?MAXPATHLEN-1:new_state.cwd_length; in virtual_realpath()
1847 char prev_cwd[MAXPATHLEN]; in virtual_popen()
1935 char cwd[MAXPATHLEN]; in tsrm_realpath()
[all …]
/PHP-7.0/ext/opcache/
H A DZendAccelerator.h77 # ifndef MAXPATHLEN
78 # define MAXPATHLEN _MAX_PATH macro
82 # ifndef MAXPATHLEN
83 # define MAXPATHLEN 4096 macro
273 char key[MAXPATHLEN * 8];
H A Dshared_alloc_win32.c79 static char newname[MAXPATHLEN + UNLEN + 4 + 1 + 32]; in create_name_with_username()
90 static char windir[MAXPATHLEN+UNLEN + 3 + sizeof("\\\\@") + 1 + 32]; in get_mmap_base_file()
95 GetTempPath(MAXPATHLEN, windir); in get_mmap_base_file()
H A Dzend_accelerator_blacklist.c232 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.0/ext/zip/
H A Dzip_stream.c128 char file_dirname[MAXPATHLEN]; in php_zip_ops_stat()
151 if (path_len >= MAXPATHLEN) { in php_zip_ops_stat()
270 char file_dirname[MAXPATHLEN]; in php_stream_zip_opener()
296 if (path_len >= MAXPATHLEN || mode[0] != 'r') { in php_stream_zip_opener()
H A Dphp_zip.c145 char file_dirname[MAXPATHLEN]; in php_zip_extract_file()
221 } else if (len > MAXPATHLEN) { in php_zip_extract_file()
282 char resolved_path[MAXPATHLEN]; in php_zip_add_file()
495 char cwd[MAXPATHLEN]; in php_zip_glob()
498 char work_pattern[MAXPATHLEN]; in php_zip_glob()
505 if (pattern_len >= MAXPATHLEN) { in php_zip_glob()
601 char cwd[MAXPATHLEN]; in php_zip_pcre()
603 char work_path[MAXPATHLEN]; in php_zip_pcre()
649 char fullpath[MAXPATHLEN]; in php_zip_pcre()
1115 char resolved_path[MAXPATHLEN + 1]; in PHP_NAMED_FUNCTION()
[all …]
/PHP-7.0/ext/intl/idn/
H A Didn.c208 UChar converted[MAXPATHLEN]; in php_intl_idn_to()
229 …converted_ret_len = uidna_IDNToASCII(ustring, ustring_len, converted, MAXPATHLEN, (int32_t)option,… in php_intl_idn_to()
231 …converted_ret_len = uidna_IDNToUnicode(ustring, ustring_len, converted, MAXPATHLEN, (int32_t)optio… in php_intl_idn_to()
/PHP-7.0/sapi/phpdbg/
H A Dphpdbg_webdata_transfer.c106 char path[MAXPATHLEN]; in phpdbg_webdata_compress()
109 ret = VCWD_GETCWD(path, MAXPATHLEN); in phpdbg_webdata_compress()

Completed in 62 milliseconds

123