Searched refs:dirname_len (Results 1 – 3 of 3) sorted by relevance
/PHP-7.2/ext/session/ |
H A D | mod_files.c | 293 size_t dirname_len; in ps_files_cleanup_dir() local 303 dirname_len = strlen(dirname); in ps_files_cleanup_dir() 305 if (dirname_len >= MAXPATHLEN) { in ps_files_cleanup_dir() 312 memcpy(buf, dirname, dirname_len); in ps_files_cleanup_dir() 313 buf[dirname_len] = PHP_DIR_SEPARATOR; in ps_files_cleanup_dir() 321 if (entry_len + dirname_len + 2 < MAXPATHLEN) { in ps_files_cleanup_dir() 323 memcpy(buf + dirname_len + 1, entry->d_name, entry_len); in ps_files_cleanup_dir() 326 buf[dirname_len + entry_len + 1] = '\0'; in ps_files_cleanup_dir()
|
/PHP-7.2/ext/zip/ |
H A D | php_zip.c | 1619 size_t dirname_len; in ZIPARCHIVE_METHOD() local 1631 &dirname, &dirname_len) == FAILURE) { in ZIPARCHIVE_METHOD() 1635 if (dirname_len<1) { in ZIPARCHIVE_METHOD() 1639 if (dirname[dirname_len-1] != '/') { in ZIPARCHIVE_METHOD() 1640 s=(char *)safe_emalloc(dirname_len, 1, 2); in ZIPARCHIVE_METHOD() 1642 s[dirname_len] = '/'; in ZIPARCHIVE_METHOD() 1643 s[dirname_len+1] = '\0'; in ZIPARCHIVE_METHOD()
|
/PHP-7.2/ext/phar/ |
H A D | phar_object.c | 3769 static void phar_mkdir(phar_archive_data **pphar, char *dirname, int dirname_len) in phar_mkdir() argument 3774 …et_or_create_entry_data((*pphar)->fname, (*pphar)->fname_len, dirname, dirname_len, "w+b", 2, &err… in phar_mkdir() 3905 size_t dirname_len; in PHP_METHOD() local 3909 if (zend_parse_parameters(ZEND_NUM_ARGS(), "p", &dirname, &dirname_len) == FAILURE) { in PHP_METHOD() 3912 if (ZEND_SIZE_T_INT_OVFL(dirname_len)) { in PHP_METHOD() 3916 if (dirname_len >= sizeof(".phar")-1 && !memcmp(dirname, ".phar", sizeof(".phar")-1)) { in PHP_METHOD() 3921 phar_mkdir(&phar_obj->archive, dirname, (int)dirname_len); in PHP_METHOD()
|
Completed in 93 milliseconds