Lines Matching refs:filename_len
427 …tr_del(&idata->phar->manifest, idata->internal_file->filename, idata->internal_file->filename_len); in phar_entry_remove()
1137 PHAR_GET_32(buffer, entry.filename_len); in phar_parse_pharfile()
1139 if (entry.filename_len == 0) { in phar_parse_pharfile()
1147 if (entry.filename_len > (size_t)(endbuffer - buffer - 24)) { in phar_parse_pharfile()
1151 …if ((manifest_ver & PHAR_API_VER_MASK) >= PHAR_API_MIN_DIR && buffer[entry.filename_len - 1] == '/… in phar_parse_pharfile()
1157 phar_add_virtual_dirs(mydata, buffer, entry.filename_len); in phar_parse_pharfile()
1158 entry.filename = pestrndup(buffer, entry.filename_len, entry.is_persistent); in phar_parse_pharfile()
1159 buffer += entry.filename_len; in phar_parse_pharfile()
1179 entry.filename_len--; in phar_parse_pharfile()
1227 str = zend_string_init_interned(entry.filename, entry.filename_len, 1); in phar_parse_pharfile()
1229 str = zend_string_init(entry.filename, entry.filename_len, 0); in phar_parse_pharfile()
1966 zend_result phar_detect_phar_fname_ext(const char *filename, size_t filename_len, const char **ext_… in phar_detect_phar_fname_ext() argument
1973 if (filename_len <= 1) { in phar_detect_phar_fname_ext()
1979 pos = memchr(filename, '/', filename_len); in phar_detect_phar_fname_ext()
1983 if (*(pos - 1) == ':' && (size_t)(pos - filename) < filename_len - 1 && *(pos + 1) == '/') { in phar_detect_phar_fname_ext()
2005 … != (pphar = zend_hash_str_find_ptr(&(PHAR_G(phar_fname_map)), (char *) filename, filename_len))) { in phar_detect_phar_fname_ext()
2006 *ext_str = filename + (filename_len - pphar->ext_len); in phar_detect_phar_fname_ext()
2025 …hed) && NULL != (pphar = zend_hash_str_find_ptr(&cached_phars, (char *) filename, filename_len))) { in phar_detect_phar_fname_ext()
2026 *ext_str = filename + (filename_len - pphar->ext_len); in phar_detect_phar_fname_ext()
2033 if (ZSTR_LEN(str_key) > filename_len) { in phar_detect_phar_fname_ext()
2037 … if (!memcmp(filename, ZSTR_VAL(str_key), ZSTR_LEN(str_key)) && (filename_len == ZSTR_LEN(str_key) in phar_detect_phar_fname_ext()
2046 if (ZSTR_LEN(str_key) > filename_len) { in phar_detect_phar_fname_ext()
2050 … if (!memcmp(filename, ZSTR_VAL(str_key), ZSTR_LEN(str_key)) && (filename_len == ZSTR_LEN(str_key) in phar_detect_phar_fname_ext()
2061 pos = memchr(filename + 1, '.', filename_len); in phar_detect_phar_fname_ext()
2068 pos = memchr(pos + 1, '.', filename_len - (pos - filename) - 1); in phar_detect_phar_fname_ext()
2074 slash = memchr(pos, '/', filename_len - (pos - filename)); in phar_detect_phar_fname_ext()
2239 zend_result phar_split_fname(const char *filename, size_t filename_len, char **arch, size_t *arch_l… in phar_split_fname() argument
2247 if (CHECK_NULL_PATH(filename, filename_len)) { in phar_split_fname()
2253 filename_len -= 7; in phar_split_fname()
2259 if (memchr(filename, '\\', filename_len)) { in phar_split_fname()
2260 filename = estrndup(filename, filename_len); in phar_split_fname()
2261 phar_unixify_path_separators((char *)filename, filename_len); in phar_split_fname()
2264 …if (phar_detect_phar_fname_ext(filename, filename_len, &ext_str, &ext_len, executable, for_create,… in phar_split_fname()
2291 *entry_len = filename_len - *arch_len; in phar_split_fname()
2407 PHAR_ZIP_16(local.filename_len) + in phar_postprocess_file()
2423 …if (entry->filename_len != PHAR_ZIP_16(local.filename_len) || entry->crc32 != PHAR_ZIP_32(local.cr… in phar_postprocess_file()
2430 …sizeof(local) + entry->header_offset + PHAR_ZIP_16(local.filename_len) + PHAR_ZIP_16(local.extra_l… in phar_postprocess_file()
2714 phar_add_virtual_dirs(phar, entry->filename, entry->filename_len); in phar_flush_ex()
2731 …offset += 4 + entry->filename_len + sizeof(entry_buffer) + (entry->metadata_tracker.str ? ZSTR_LEN… in phar_flush_ex()
2931 phar_set_32(entry_buffer, entry->filename_len + 1); in phar_flush_ex()
2933 phar_set_32(entry_buffer, entry->filename_len); in phar_flush_ex()
2937 || entry->filename_len != php_stream_write(newfile, entry->filename, entry->filename_len) in phar_flush_ex()