Lines Matching refs:filename_len

425 …tr_del(&idata->phar->manifest, idata->internal_file->filename, idata->internal_file->filename_len);  in phar_entry_remove()
1132 PHAR_GET_32(buffer, entry.filename_len); in phar_parse_pharfile()
1134 if (entry.filename_len == 0) { in phar_parse_pharfile()
1142 if (entry.filename_len > (size_t)(endbuffer - buffer - 24)) { in phar_parse_pharfile()
1146 …if ((manifest_ver & PHAR_API_VER_MASK) >= PHAR_API_MIN_DIR && buffer[entry.filename_len - 1] == '/… in phar_parse_pharfile()
1152 phar_add_virtual_dirs(mydata, buffer, entry.filename_len); in phar_parse_pharfile()
1153 entry.filename = pestrndup(buffer, entry.filename_len, entry.is_persistent); in phar_parse_pharfile()
1154 buffer += entry.filename_len; in phar_parse_pharfile()
1174 entry.filename_len--; in phar_parse_pharfile()
1222 str = zend_string_init_interned(entry.filename, entry.filename_len, 1); in phar_parse_pharfile()
1224 str = zend_string_init(entry.filename, entry.filename_len, 0); in phar_parse_pharfile()
1961 int phar_detect_phar_fname_ext(const char *filename, size_t filename_len, const char **ext_str, siz… in phar_detect_phar_fname_ext() argument
1968 if (!filename_len || filename_len == 1) { in phar_detect_phar_fname_ext()
1974 pos = memchr(filename, '/', filename_len); in phar_detect_phar_fname_ext()
1978 if (*(pos - 1) == ':' && (size_t)(pos - filename) < filename_len - 1 && *(pos + 1) == '/') { in phar_detect_phar_fname_ext()
2000 … != (pphar = zend_hash_str_find_ptr(&(PHAR_G(phar_fname_map)), (char *) filename, filename_len))) { in phar_detect_phar_fname_ext()
2001 *ext_str = filename + (filename_len - pphar->ext_len); in phar_detect_phar_fname_ext()
2020 …hed) && NULL != (pphar = zend_hash_str_find_ptr(&cached_phars, (char *) filename, filename_len))) { in phar_detect_phar_fname_ext()
2021 *ext_str = filename + (filename_len - pphar->ext_len); in phar_detect_phar_fname_ext()
2028 if (ZSTR_LEN(str_key) > (uint32_t) filename_len) { in phar_detect_phar_fname_ext()
2032 …if (!memcmp(filename, ZSTR_VAL(str_key), ZSTR_LEN(str_key)) && ((uint32_t)filename_len == ZSTR_LEN… in phar_detect_phar_fname_ext()
2041 if (ZSTR_LEN(str_key) > (uint32_t) filename_len) { in phar_detect_phar_fname_ext()
2045 …if (!memcmp(filename, ZSTR_VAL(str_key), ZSTR_LEN(str_key)) && ((uint32_t)filename_len == ZSTR_LEN… in phar_detect_phar_fname_ext()
2055 pos = memchr(filename + 1, '.', filename_len); in phar_detect_phar_fname_ext()
2062 pos = memchr(pos + 1, '.', filename_len - (pos - filename) - 1); in phar_detect_phar_fname_ext()
2068 slash = memchr(pos, '/', filename_len - (pos - filename)); in phar_detect_phar_fname_ext()
2242 int phar_split_fname(const char *filename, size_t filename_len, char **arch, size_t *arch_len, char… in phar_split_fname() argument
2250 if (CHECK_NULL_PATH(filename, filename_len)) { in phar_split_fname()
2256 filename_len -= 7; in phar_split_fname()
2262 if (memchr(filename, '\\', filename_len)) { in phar_split_fname()
2263 filename = estrndup(filename, filename_len); in phar_split_fname()
2264 phar_unixify_path_separators((char *)filename, filename_len); in phar_split_fname()
2267 …if (phar_detect_phar_fname_ext(filename, filename_len, &ext_str, &ext_len, executable, for_create,… in phar_split_fname()
2294 *entry_len = filename_len - *arch_len; in phar_split_fname()
2418 PHAR_ZIP_16(local.filename_len) + in phar_postprocess_file()
2434 …if (entry->filename_len != PHAR_ZIP_16(local.filename_len) || entry->crc32 != PHAR_ZIP_32(local.cr… in phar_postprocess_file()
2441 …sizeof(local) + entry->header_offset + PHAR_ZIP_16(local.filename_len) + PHAR_ZIP_16(local.extra_l… in phar_postprocess_file()
2759 phar_add_virtual_dirs(phar, entry->filename, entry->filename_len); in phar_flush()
2776 …offset += 4 + entry->filename_len + sizeof(entry_buffer) + (entry->metadata_tracker.str ? ZSTR_LEN… in phar_flush()
2976 phar_set_32(entry_buffer, entry->filename_len + 1); in phar_flush()
2978 phar_set_32(entry_buffer, entry->filename_len); in phar_flush()
2982 || entry->filename_len != php_stream_write(newfile, entry->filename, entry->filename_len) in phar_flush()