Lines Matching refs:fname_len

317 static void phar_do_404(phar_archive_data *phar, char *fname, size_t fname_len, char *f404, size_t …  in phar_do_404()  argument
344 static void phar_postprocess_ru_web(char *fname, size_t fname_len, char **entry, size_t *entry_len,… in phar_postprocess_ru_web() argument
351 pphar = zend_hash_str_find_ptr(&(PHAR_G(phar_fname_map)), fname, fname_len); in phar_postprocess_ru_web()
354 pphar = zend_hash_str_find_ptr(&cached_phars, fname, fname_len); in phar_postprocess_ru_web()
446 size_t fname_len, arch_len, entry_len; in PHP_METHOD() local
461 fname_len = 0; in PHP_METHOD()
464 fname_len = ZSTR_LEN(zend_file_name); in PHP_METHOD()
469 if (memchr(fname, '\\', fname_len)) { in PHP_METHOD()
470 fname = do_alloca(fname_len + 1, fname_use_heap); in PHP_METHOD()
471 memcpy(fname, save_fname, fname_len); in PHP_METHOD()
472 fname[fname_len] = '\0'; in PHP_METHOD()
473 phar_unixify_path_separators(fname, fname_len); in PHP_METHOD()
477 …if (fname_len > 7 && !memcmp(fname, "phar://", 7) && SUCCESS == phar_split_fname(fname, fname_len,… in PHP_METHOD()
516 …e_map)) && NULL != (pphar = zend_hash_str_find_ptr(&(PHAR_G(phar_fname_map)), fname, fname_len))) { in PHP_METHOD()
518 …_G(manifest_cached) && NULL != (pphar = zend_hash_str_find_ptr(&cached_phars, fname, fname_len))) { in PHP_METHOD()
558 size_t fname_len, index_php_len = 0; in PHP_METHOD() local
601 fname_len = ZSTR_LEN(zend_file_name); in PHP_METHOD()
604 if (memchr(fname, '\\', fname_len)) { in PHP_METHOD()
605 fname = estrndup(fname, fname_len); in PHP_METHOD()
606 phar_unixify_path_separators(fname, fname_len); in PHP_METHOD()
609 basename = zend_memrchr(fname, '/', fname_len); in PHP_METHOD()
671 pt = estrndup(testit, (pt - testit) + (fname_len - (basename - fname))); in PHP_METHOD()
683 entry_len -= (pt - path_info) + (fname_len - (basename - fname)); in PHP_METHOD()
684 entry = estrndup(pt + (fname_len - (basename - fname)), entry_len); in PHP_METHOD()
686 pt = estrndup(path_info, (pt - path_info) + (fname_len - (basename - fname))); in PHP_METHOD()
745 phar_postprocess_ru_web(fname, fname_len, &entry, &entry_len, &ru, &ru_len); in PHP_METHOD()
764 if (FAILURE == phar_get_archive(&phar, fname, fname_len, NULL, 0, NULL) || in PHP_METHOD()
766 phar_do_404(phar, fname, fname_len, f404, f404_len, entry, entry_len); in PHP_METHOD()
782 tmp = strstr(path_info, basename) + fname_len; in PHP_METHOD()
810 if (FAILURE == phar_get_archive(&phar, fname, fname_len, NULL, 0, NULL) || in PHP_METHOD()
812 phar_do_404(phar, fname, fname_len, f404, f404_len, entry, entry_len); in PHP_METHOD()
986 size_t fname_len, alias_len = 0; in PHP_METHOD() local
988 …if (zend_parse_parameters(ZEND_NUM_ARGS(), "p|s!", &fname, &fname_len, &alias, &alias_len) == FAIL… in PHP_METHOD()
994 …RETVAL_BOOL(phar_open_from_filename(fname, fname_len, alias, alias_len, REPORT_ERRORS, NULL, &erro… in PHP_METHOD()
1060 size_t fname_len; in PHP_METHOD() local
1065 if (zend_parse_parameters(ZEND_NUM_ARGS(), "p|b", &fname, &fname_len, &executable) == FAILURE) { in PHP_METHOD()
1070 …RETVAL_BOOL(phar_detect_phar_fname_ext(fname, fname_len, &ext_str, &ext_len, is_executable, 2, 1) … in PHP_METHOD()
1118 size_t fname_len, alias_len = 0; in PHP_METHOD() local
1132 …if (zend_parse_parameters(ZEND_NUM_ARGS(), "p|ls!l", &fname, &fname_len, &flags, &alias, &alias_le… in PHP_METHOD()
1136 …if (zend_parse_parameters(ZEND_NUM_ARGS(), "p|ls!", &fname, &fname_len, &flags, &alias, &alias_len… in PHP_METHOD()
1147 …if (SUCCESS == phar_split_fname(fname, fname_len, &arch, &arch_len, &entry, &entry_len, !is_data, … in PHP_METHOD()
1154 fname_len = arch_len; in PHP_METHOD()
1157 arch = estrndup(fname, fname_len); in PHP_METHOD()
1158 arch_len = fname_len; in PHP_METHOD()
1164 …if (phar_open_or_create_filename(fname, fname_len, alias, alias_len, is_data, REPORT_ERRORS, &phar… in PHP_METHOD()
1219 fname_len = spprintf(&fname, 0, "phar://%s%s", phar_data->fname, entry); in PHP_METHOD()
1222 fname_len = spprintf(&fname, 0, "phar://%s", phar_data->fname); in PHP_METHOD()
1225 ZVAL_STRINGL(&arg1, fname, fname_len); in PHP_METHOD()
1296 size_t fname_len; in PHP_METHOD() local
1300 if (zend_parse_parameters(ZEND_NUM_ARGS(), "p", &fname, &fname_len) == FAILURE) { in PHP_METHOD()
1304 if (!fname_len) { in PHP_METHOD()
1309 if (FAILURE == phar_open_from_filename(fname, fname_len, NULL, 0, REPORT_ERRORS, &phar, &error)) { in PHP_METHOD()
1326 if (arch_len == fname_len && !memcmp(arch, fname, arch_len)) { in PHP_METHOD()
1346 fname = estrndup(phar->fname, phar->fname_len); in PHP_METHOD()
1401 size_t fname_len; in phar_build() local
1474fname_len = spprintf(&fname, 0, "%s%c%s", ZSTR_VAL(test_str), DEFAULT_SLASH, intern->u.dir.entry.d… in phar_build()
1487 fname_len = strlen(fname); in phar_build()
1504 fname_len = strlen(fname); in phar_build()
1516 fname_len = Z_STRLEN_P(value); in phar_build()
1532 …if (fname_len >= base_len && strncmp(fname, base, base_len) == 0 && ((ch = fname[base_len - IS_SLA… in phar_build()
1533 str_key_len = fname_len - base_len; in phar_build()
1638 …if (!(data = phar_get_or_create_entry_data(phar_obj->archive->fname, phar_obj->archive->fname_len,… in phar_build()
2071 oldpath = estrndup(phar->fname, phar->fname_len); in phar_rename_archive()
2072 if ((oldname = zend_memrchr(phar->fname, '/', phar->fname_len))) { in phar_rename_archive()
2116 phar->fname_len = new_len; in phar_rename_archive()
2118 phar->ext = newpath + phar->fname_len - strlen(ext) - 1; in phar_rename_archive()
2122 …est_cached) && NULL != (pphar = zend_hash_str_find_ptr(&cached_phars, newpath, phar->fname_len))) { in phar_rename_archive()
2128 …if (NULL != (pphar = zend_hash_str_find_ptr(&(PHAR_G(phar_fname_map)), newpath, phar->fname_len)))… in phar_rename_archive()
2129 if (pphar->fname_len == phar->fname_len && !memcmp(pphar->fname, phar->fname, phar->fname_len)) { in phar_rename_archive()
2159 …if (SUCCESS != phar_detect_phar_fname_ext(newpath, phar->fname_len, (const char **) &(phar->ext), … in phar_rename_archive()
2174 zend_hash_str_update_ptr(&(PHAR_G(phar_alias_map)), newpath, phar->fname_len, phar); in phar_rename_archive()
2180 …if (SUCCESS != phar_detect_phar_fname_ext(newpath, phar->fname_len, (const char **) &(phar->ext), … in phar_rename_archive()
2191 …) && NULL == zend_hash_str_update_ptr(&(PHAR_G(phar_fname_map)), newpath, phar->fname_len, phar)) { in phar_rename_archive()
2200 zend_hash_str_del(&(PHAR_G(phar_fname_map)), newpath, phar->fname_len); in phar_rename_archive()
2223 ZVAL_STRINGL(&arg1, phar->fname, phar->fname_len); in phar_rename_archive()
2271 phar->fname_len = source->fname_len; in phar_convert_to_other()
2683 RETURN_STRINGL(phar_obj->archive->fname, phar_obj->archive->fname_len); in PHP_METHOD()
3641 …if (!(data = phar_get_or_create_entry_data((*pphar)->fname, (*pphar)->fname_len, filename, filenam… in phar_add_file()
3713 …if (!(data = phar_get_or_create_entry_data((*pphar)->fname, (*pphar)->fname_len, ZSTR_VAL(dir_name… in phar_mkdir()
4448 size_t fname_len; in PHP_METHOD() local
4455 if (zend_parse_parameters(ZEND_NUM_ARGS(), "p", &fname, &fname_len) == FAILURE) { in PHP_METHOD()
4466 …if (fname_len < 7 || memcmp(fname, "phar://", 7) || phar_split_fname(fname, fname_len, &arch, &arc… in PHP_METHOD()
4499 ZVAL_STRINGL(&arg1, fname, fname_len); in PHP_METHOD()