Home
last modified time | relevance | path

Searched refs:dir_len (Results 1 – 14 of 14) sorted by relevance

/php-src/win32/
H A Dioutil.h178 size_t mb_len, dir_len = 0; in php_win32_ioutil_conv_any_to_w() local
187 dir_len = GetCurrentDirectoryW(0, NULL); in php_win32_ioutil_conv_any_to_w()
188 if (dir_len == 0) { in php_win32_ioutil_conv_any_to_w()
196 if (dir_len + mb_len >= _MAX_PATH) { in php_win32_ioutil_conv_any_to_w()
199 …ret = (wchar_t *) malloc((dir_len + mb_len + PHP_WIN32_IOUTIL_LONG_PATH_PREFIX_LENW + 1) * sizeof(… in php_win32_ioutil_conv_any_to_w()
212 wchar_t *tmp = (wchar_t *) realloc(ret, (dir_len + new_mb_len + 1) * sizeof(wchar_t)); in php_win32_ioutil_conv_any_to_w()
229 if (dir_len > 0) { in php_win32_ioutil_conv_any_to_w()
230 size_t len = GetCurrentDirectoryW(dir_len, dst); in php_win32_ioutil_conv_any_to_w()
231 if (len == 0 || len + 1 != dir_len) { in php_win32_ioutil_conv_any_to_w()
248 ret[mb_len + PHP_WIN32_IOUTIL_LONG_PATH_PREFIX_LENW + dir_len] = L'\0'; in php_win32_ioutil_conv_any_to_w()
[all …]
H A Dioutil.c284 size_t path_len, dir_len = 0; in php_win32_ioutil_mkdir_w() local
297 dir_len = GetCurrentDirectoryW(0, NULL); in php_win32_ioutil_mkdir_w()
298 if (dir_len == 0) { in php_win32_ioutil_mkdir_w()
304 if (dir_len + path_len < _MAX_PATH && dir_len + path_len >= _MAX_PATH - 12) { in php_win32_ioutil_mkdir_w()
327 …wchar_t *_tmp = (wchar_t *) malloc((dir_len + path_len + PHP_WIN32_IOUTIL_LONG_PATH_PREFIX_LENW + … in php_win32_ioutil_mkdir_w()
338 if (dir_len > 0) { in php_win32_ioutil_mkdir_w()
339 size_t len = GetCurrentDirectoryW(dir_len, dst); in php_win32_ioutil_mkdir_w()
340 if (len == 0 || len + 1 != dir_len) { in php_win32_ioutil_mkdir_w()
357 path_len += PHP_WIN32_IOUTIL_LONG_PATH_PREFIX_LENW + dir_len; in php_win32_ioutil_mkdir_w()
/php-src/ext/ftp/
H A Dphp_ftp.c292 size_t dir_len; in PHP_FUNCTION() local
300 if (!ftp_chdir(ftp, dir, dir_len)) { in PHP_FUNCTION()
361 size_t dir_len; in PHP_FUNCTION() local
369 if (NULL == (tmp = ftp_mkdir(ftp, dir, dir_len))) { in PHP_FUNCTION()
386 size_t dir_len; in PHP_FUNCTION() local
394 if (!ftp_rmdir(ftp, dir, dir_len)) { in PHP_FUNCTION()
463 size_t dir_len; in PHP_FUNCTION() local
471 if (NULL == (nlist = ftp_nlist(ftp, dir, dir_len))) { in PHP_FUNCTION()
489 size_t dir_len; in PHP_FUNCTION() local
516 size_t dir_len; in PHP_FUNCTION() local
[all …]
H A Dftp.h127 int ftp_chdir(ftpbuf_t *ftp, const char *dir, const size_t dir_len);
135 zend_string* ftp_mkdir(ftpbuf_t *ftp, const char *dir, const size_t dir_len);
138 int ftp_rmdir(ftpbuf_t *ftp, const char *dir, const size_t dir_len);
H A Dftp.c531 ftp_chdir(ftpbuf_t *ftp, const char *dir, const size_t dir_len) in ftp_chdir() argument
542 if (!ftp_putcmd(ftp, "CWD", sizeof("CWD")-1, dir, dir_len)) { in ftp_chdir()
577 ftp_mkdir(ftpbuf_t *ftp, const char *dir, const size_t dir_len) in ftp_mkdir() argument
585 if (!ftp_putcmd(ftp, "MKD", sizeof("MKD")-1, dir, dir_len)) { in ftp_mkdir()
593 return zend_string_init(dir, dir_len, 0); in ftp_mkdir()
608 ftp_rmdir(ftpbuf_t *ftp, const char *dir, const size_t dir_len) in ftp_rmdir() argument
613 if (!ftp_putcmd(ftp, "RMD", sizeof("RMD")-1, dir, dir_len)) { in ftp_rmdir()
/php-src/ext/standard/
H A Ddir.c144 size_t dir_len; in _php_do_opendir() local
150 Z_PARAM_PATH(dirname, dir_len) in _php_do_opendir()
169 ZVAL_STRINGL(Z_DIRECTORY_PATH_P(return_value), dirname, dir_len); in _php_do_opendir()
H A Dfile.c684 size_t dir_len, prefix_len; in PHP_FUNCTION() local
690 Z_PARAM_PATH(dir, dir_len) in PHP_FUNCTION()
1116 size_t dir_len; in PHP_FUNCTION() local
1123 Z_PARAM_PATH(dir, dir_len) in PHP_FUNCTION()
1140 size_t dir_len; in PHP_FUNCTION() local
1145 Z_PARAM_PATH(dir, dir_len) in PHP_FUNCTION()
/php-src/ext/fileinfo/libmagic/
H A Dcdf.c687 dir->dir_len = ns * nd; in cdf_read_dir()
689 CDF_CALLOC(dir->dir_len, sizeof(dir->dir_tab[0]))); in cdf_read_dir()
715 for (i = 0; i < dir->dir_len; i++) in cdf_read_dir()
779 for (i = 0; i < dir->dir_len; i++) in cdf_read_short_stream()
784 if (i == dir->dir_len) { in cdf_read_short_stream()
855 for (i = dir->dir_len; i > 0; i--) in cdf_find_stream()
1408 for (i = 0; i < dir->dir_len; i++) { in cdf_dump_dir()
H A Dcdf.h124 size_t dir_len; member
H A Dreadcdf.c396 for (j = 0; str == NULL && j < dir->dir_len; j++) { in cdf_check_summary_info()
/php-src/ext/xmlwriter/
H A Dphp_xmlwriter.c151 size_t dir_len; in _xmlwriter_get_valid_file_path() local
159 dir_len = zend_dirname(file_dirname, strlen(source)); in _xmlwriter_get_valid_file_path()
161 if (dir_len > 0) { in _xmlwriter_get_valid_file_path()
/php-src/main/streams/
H A Dplain_wrapper.c1403 size_t dir_len = strlen(dir), offset = 0; in php_plain_files_mkdir() local
1406 if ((p = memchr(buf, DEFAULT_SLASH, dir_len))) { in php_plain_files_mkdir()
1410 if (p && dir_len == 1) { in php_plain_files_mkdir()
/php-src/ext/zip/
H A Dphp_zip.c135 size_t dir_len, len; in php_zip_extract_file() local
174 dir_len = zend_dirname(file_dirname, path_cleaned_len); in php_zip_extract_file()
176 if (!dir_len || (dir_len == 1 && file_dirname[0] == '.')) { in php_zip_extract_file()
/php-src/ext/fileinfo/
H A Dlibmagic.patch1118 for (i = 0; i < dir->dir_len; i++)

Completed in 103 milliseconds