Home
last modified time | relevance | path

Searched refs:dirname_len (Results 1 – 3 of 3) sorted by relevance

/PHP-8.0/ext/session/
H A Dmod_files.c290 size_t dirname_len; in ps_files_cleanup_dir() local
300 dirname_len = strlen(dirname); in ps_files_cleanup_dir()
302 if (dirname_len >= MAXPATHLEN) { in ps_files_cleanup_dir()
309 memcpy(buf, dirname, dirname_len); in ps_files_cleanup_dir()
310 buf[dirname_len] = PHP_DIR_SEPARATOR; in ps_files_cleanup_dir()
318 if (entry_len + dirname_len + 2 < MAXPATHLEN) { in ps_files_cleanup_dir()
320 memcpy(buf + dirname_len + 1, entry->d_name, entry_len); in ps_files_cleanup_dir()
323 buf[dirname_len + entry_len + 1] = '\0'; in ps_files_cleanup_dir()
/PHP-8.0/ext/zip/
H A Dphp_zip.c1648 size_t dirname_len; local
1653 &dirname, &dirname_len, &flags) == FAILURE) {
1659 if (dirname_len<1) {
1663 if (dirname[dirname_len-1] != '/') {
1664 s=(char *)safe_emalloc(dirname_len, 1, 2);
1666 s[dirname_len] = '/';
1667 s[dirname_len+1] = '\0';
/PHP-8.0/ext/phar/
H A Dphar_object.c3674 static void phar_mkdir(phar_archive_data **pphar, char *dirname, size_t dirname_len) in phar_mkdir() argument
3679 …et_or_create_entry_data((*pphar)->fname, (*pphar)->fname_len, dirname, dirname_len, "w+b", 2, &err… in phar_mkdir()
3801 size_t dirname_len; in PHP_METHOD() local
3803 if (zend_parse_parameters(ZEND_NUM_ARGS(), "p", &dirname, &dirname_len) == FAILURE) { in PHP_METHOD()
3809 if (dirname_len >= sizeof(".phar")-1 && !memcmp(dirname, ".phar", sizeof(".phar")-1)) { in PHP_METHOD()
3814 phar_mkdir(&phar_obj->archive, dirname, dirname_len); in PHP_METHOD()

Completed in 24 milliseconds