Lines Matching refs:arch
136 …_info *info, char *mime_type, int code, char *entry, int entry_len, char *arch, char *basename, ch… in phar_file_action() argument
156 spprintf(&name, 4096, "phar://%s%s", arch, entry); in phar_file_action()
158 spprintf(&name, 4096, "phar://%s/%s", arch, entry); in phar_file_action()
166 efree(arch); in phar_file_action()
214 phar_mung_server_vars(arch, entry, entry_len, basename, ru_len); in phar_file_action()
219 name_len = spprintf(&name, 4096, "phar://%s%s", arch, entry); in phar_file_action()
221 name_len = spprintf(&name, 4096, "phar://%s/%s", arch, entry); in phar_file_action()
263 efree(arch); in phar_file_action()
409 char *fname, *arch, *entry; in PHP_METHOD() local
420 …mp(fname, "phar://", 7) && SUCCESS == phar_split_fname(fname, fname_len, &arch, &arch_len, &entry,… in PHP_METHOD()
424 efree(arch); in PHP_METHOD()
428 RETVAL_STRINGL(arch, arch_len); in PHP_METHOD()
429 efree(arch); in PHP_METHOD()
446 char *fname, *arch = NULL, *entry = NULL, *path, *actual; in PHP_METHOD() local
466 …mp(fname, "phar://", 7) && SUCCESS == phar_split_fname(fname, fname_len, &arch, &arch_len, &entry,… in PHP_METHOD()
472 efree(arch); in PHP_METHOD()
476 if (NULL == (pphar = zend_hash_str_find_ptr(&(PHAR_G(phar_fname_map)), arch, arch_len))) { in PHP_METHOD()
477 …if (PHAR_G(manifest_cached) && NULL != (pphar = zend_hash_str_find_ptr(&cached_phars, arch, arch_l… in PHP_METHOD()
483 … zend_throw_exception_ex(phar_ce_PharException, 0, "%s is not a phar archive, cannot mount", arch); in PHP_METHOD()
485 if (arch) { in PHP_METHOD()
486 efree(arch); in PHP_METHOD()
492 …ion_ex(phar_ce_PharException, 0, "Mounting of %s to %s within phar %s failed", path, actual, arch); in PHP_METHOD()
497 if (arch) { in PHP_METHOD()
498 efree(arch); in PHP_METHOD()
508 if (arch) { in PHP_METHOD()
509 efree(arch); in PHP_METHOD()
521 …} else if (SUCCESS == phar_split_fname(path, (int)path_len, &arch, &arch_len, &entry, &entry_len, … in PHP_METHOD()
1146 char *fname, *alias = NULL, *error, *arch = NULL, *entry = NULL, *save_fname; in PHP_METHOD() local
1178 …if (SUCCESS == phar_split_fname(fname, (int)fname_len, &arch, &arch_len, &entry, &entry_len, !is_d… in PHP_METHOD()
1182 phar_unixify_path_separators(arch, arch_len); in PHP_METHOD()
1184 fname = arch; in PHP_METHOD()
1188 arch = estrndup(fname, fname_len); in PHP_METHOD()
1190 fname = arch; in PHP_METHOD()
1191 phar_unixify_path_separators(arch, arch_len); in PHP_METHOD()
1197 if (fname == arch && fname != save_fname) { in PHP_METHOD()
1198 efree(arch); in PHP_METHOD()
1223 if (fname == arch) { in PHP_METHOD()
1224 efree(arch); in PHP_METHOD()
1330 char *fname, *error, *zname, *arch, *entry; in PHP_METHOD() local
1360 …mp(zname, "phar://", 7) && SUCCESS == phar_split_fname(zname, zname_len, &arch, &arch_len, &entry,… in PHP_METHOD()
1361 if ((size_t)arch_len == fname_len && !memcmp(arch, fname, arch_len)) { in PHP_METHOD()
1363 efree(arch); in PHP_METHOD()
1367 efree(arch); in PHP_METHOD()
4459 char *fname, *arch, *entry, *error; in PHP_METHOD() local
4478 …if (fname_len < 7 || memcmp(fname, "phar://", 7) || phar_split_fname(fname, (int)fname_len, &arch,… in PHP_METHOD()
4484 …if (phar_open_from_filename(arch, arch_len, NULL, 0, REPORT_ERRORS, &phar_data, &error) == FAILURE… in PHP_METHOD()
4485 efree(arch); in PHP_METHOD()
4500 …"Cannot access phar file entry '%s' in archive '%s'%s%s", entry, arch, error ? ", " : "", error ? … in PHP_METHOD()
4501 efree(arch); in PHP_METHOD()
4506 efree(arch); in PHP_METHOD()