Lines Matching refs:fname_len
261 int arch_len, entry_len, fname_len, ret_len; in phar_find_in_include_path() local
275 fname_len = strlen(fname); in phar_find_in_include_path()
277 …if (PHAR_G(last_phar) && !memcmp(fname, "phar://", 7) && fname_len - 7 >= PHAR_G(last_phar_name_le… in phar_find_in_include_path()
284 …if (fname_len < 7 || memcmp(fname, "phar://", 7) || SUCCESS != phar_split_fname(fname, strlen(fnam… in phar_find_in_include_path()
575 int phar_get_entry_data(phar_entry_data **ret, char *fname, int fname_len, char *path, int path_len… in phar_get_entry_data() argument
594 if (FAILURE == phar_get_archive(&phar, fname, fname_len, NULL, 0, error TSRMLS_CC)) { in phar_get_entry_data()
736 phar_entry_data *phar_get_or_create_entry_data(char *fname, int fname_len, char *path, int path_len… in phar_get_or_create_entry_data() argument
750 if (FAILURE == phar_get_archive(&phar, fname, fname_len, NULL, 0, error TSRMLS_CC)) { in phar_get_or_create_entry_data()
754 …if (FAILURE == phar_get_entry_data(&ret, fname, fname_len, path, path_len, mode, allow_dir, error,… in phar_get_or_create_entry_data()
1195 if (zend_hash_del(&(PHAR_GLOBALS->phar_fname_map), phar->fname, phar->fname_len) != SUCCESS) { in phar_free_alias()
1211 int phar_get_archive(phar_archive_data **archive, char *fname, int fname_len, char *alias, int alia… in phar_get_archive() argument
1226 …if (PHAR_G(last_phar) && fname_len == PHAR_G(last_phar_name_len) && !memcmp(fname, PHAR_G(last_pha… in phar_get_archive()
1260 … if (fname && (fname_len != (*fd_ptr)->fname_len || strncmp(fname, (*fd_ptr)->fname, fname_len))) { in phar_get_archive()
1277 PHAR_G(last_phar_name_len) = fd->fname_len; in phar_get_archive()
1289 fhash = zend_inline_hash_func(fname, fname_len); in phar_get_archive()
1292 save_len = fname_len; in phar_get_archive()
1294 if (fname && fname_len) { in phar_get_archive()
1295 …if (SUCCESS == zend_hash_quick_find(&(PHAR_GLOBALS->phar_fname_map), fname, fname_len, fhash, (voi… in phar_get_archive()
1316 PHAR_G(last_phar_name_len) = fd->fname_len; in phar_get_archive()
1323 …if (PHAR_G(manifest_cached) && SUCCESS == zend_hash_quick_find(&cached_phars, fname, fname_len, fh… in phar_get_archive()
1340 PHAR_G(last_phar_name_len) = fd->fname_len; in phar_get_archive()
1352 PHAR_G(last_phar_name_len) = fd->fname_len; in phar_get_archive()
1364 PHAR_G(last_phar_name_len) = fd->fname_len; in phar_get_archive()
1375 fname_len = strlen(my_realpath); in phar_get_archive()
1381 phar_unixify_path_separators(fname, fname_len); in phar_get_archive()
1383 fhash = zend_inline_hash_func(fname, fname_len); in phar_get_archive()
1385 …if (SUCCESS == zend_hash_quick_find(&(PHAR_GLOBALS->phar_fname_map), fname, fname_len, fhash, (voi… in phar_get_archive()
1398 PHAR_G(last_phar_name_len) = fd->fname_len; in phar_get_archive()
1405 …if (PHAR_G(manifest_cached) && SUCCESS == zend_hash_quick_find(&cached_phars, fname, fname_len, fh… in phar_get_archive()
2309 phar->fname = estrndup(phar->fname, phar->fname_len);
2357 …(objphar[0]->arc.archive->fname_len == phar->fname_len && !memcmp(objphar[0]->arc.archive->fname, …
2368 …if (SUCCESS != zend_hash_add(&(PHAR_GLOBALS->phar_fname_map), (*pphar)->fname, (*pphar)->fname_len…
2379 zend_hash_del(&(PHAR_GLOBALS->phar_fname_map), (*pphar)->fname, (*pphar)->fname_len);