Lines Matching refs:filename_len

425 …tr_del(&idata->phar->manifest, idata->internal_file->filename, idata->internal_file->filename_len);  in phar_entry_remove()
1135 PHAR_GET_32(buffer, entry.filename_len); in phar_parse_pharfile()
1137 if (entry.filename_len == 0) { in phar_parse_pharfile()
1145 if (entry.filename_len > (size_t)(endbuffer - buffer - 24)) { in phar_parse_pharfile()
1149 …if ((manifest_ver & PHAR_API_VER_MASK) >= PHAR_API_MIN_DIR && buffer[entry.filename_len - 1] == '/… in phar_parse_pharfile()
1155 phar_add_virtual_dirs(mydata, buffer, entry.filename_len); in phar_parse_pharfile()
1156 entry.filename = pestrndup(buffer, entry.filename_len, entry.is_persistent); in phar_parse_pharfile()
1157 buffer += entry.filename_len; in phar_parse_pharfile()
1177 entry.filename_len--; in phar_parse_pharfile()
1225 str = zend_string_init_interned(entry.filename, entry.filename_len, 1); in phar_parse_pharfile()
1227 str = zend_string_init(entry.filename, entry.filename_len, 0); in phar_parse_pharfile()
1964 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
1971 if (filename_len <= 1) { in phar_detect_phar_fname_ext()
1977 pos = memchr(filename, '/', filename_len); in phar_detect_phar_fname_ext()
1981 if (*(pos - 1) == ':' && (size_t)(pos - filename) < filename_len - 1 && *(pos + 1) == '/') { in phar_detect_phar_fname_ext()
2003 … != (pphar = zend_hash_str_find_ptr(&(PHAR_G(phar_fname_map)), (char *) filename, filename_len))) { in phar_detect_phar_fname_ext()
2004 *ext_str = filename + (filename_len - pphar->ext_len); in phar_detect_phar_fname_ext()
2023 …hed) && NULL != (pphar = zend_hash_str_find_ptr(&cached_phars, (char *) filename, filename_len))) { in phar_detect_phar_fname_ext()
2024 *ext_str = filename + (filename_len - pphar->ext_len); in phar_detect_phar_fname_ext()
2031 if (ZSTR_LEN(str_key) > (uint32_t) filename_len) { in phar_detect_phar_fname_ext()
2035 …if (!memcmp(filename, ZSTR_VAL(str_key), ZSTR_LEN(str_key)) && ((uint32_t)filename_len == ZSTR_LEN… in phar_detect_phar_fname_ext()
2044 if (ZSTR_LEN(str_key) > (uint32_t) filename_len) { in phar_detect_phar_fname_ext()
2048 …if (!memcmp(filename, ZSTR_VAL(str_key), ZSTR_LEN(str_key)) && ((uint32_t)filename_len == ZSTR_LEN… in phar_detect_phar_fname_ext()
2058 pos = memchr(filename + 1, '.', filename_len); in phar_detect_phar_fname_ext()
2065 pos = memchr(pos + 1, '.', filename_len - (pos - filename) - 1); in phar_detect_phar_fname_ext()
2071 slash = memchr(pos, '/', filename_len - (pos - filename)); in phar_detect_phar_fname_ext()
2245 int phar_split_fname(const char *filename, size_t filename_len, char **arch, size_t *arch_len, char… in phar_split_fname() argument
2253 if (CHECK_NULL_PATH(filename, filename_len)) { in phar_split_fname()
2259 filename_len -= 7; in phar_split_fname()
2265 if (memchr(filename, '\\', filename_len)) { in phar_split_fname()
2266 filename = estrndup(filename, filename_len); in phar_split_fname()
2267 phar_unixify_path_separators((char *)filename, filename_len); in phar_split_fname()
2270 …if (phar_detect_phar_fname_ext(filename, filename_len, &ext_str, &ext_len, executable, for_create,… in phar_split_fname()
2297 *entry_len = filename_len - *arch_len; in phar_split_fname()
2415 PHAR_ZIP_16(local.filename_len) + in phar_postprocess_file()
2431 …if (entry->filename_len != PHAR_ZIP_16(local.filename_len) || entry->crc32 != PHAR_ZIP_32(local.cr… in phar_postprocess_file()
2438 …sizeof(local) + entry->header_offset + PHAR_ZIP_16(local.filename_len) + PHAR_ZIP_16(local.extra_l… in phar_postprocess_file()
2751 phar_add_virtual_dirs(phar, entry->filename, entry->filename_len); in phar_flush()
2768 …offset += 4 + entry->filename_len + sizeof(entry_buffer) + (entry->metadata_tracker.str ? ZSTR_LEN… in phar_flush()
2968 phar_set_32(entry_buffer, entry->filename_len + 1); in phar_flush()
2970 phar_set_32(entry_buffer, entry->filename_len); in phar_flush()
2974 || entry->filename_len != php_stream_write(newfile, entry->filename, entry->filename_len) in phar_flush()