Lines Matching refs:entry_len

49 static void phar_mung_server_vars(char *fname, char *entry, size_t entry_len, char *basename, size_…  in phar_mung_server_vars()  argument
69 if (code > (size_t)entry_len && !memcmp(path_info, entry, entry_len)) { in phar_mung_server_vars()
71 ZVAL_STRINGL(stuff, path_info + entry_len, request_uri_len); in phar_mung_server_vars()
117 ZVAL_STRINGL(stuff, entry, entry_len); in phar_mung_server_vars()
135 …, phar_entry_info *info, char *mime_type, int code, char *entry, size_t entry_len, char *arch, cha… in phar_file_action() argument
213 phar_mung_server_vars(arch, entry, entry_len, basename, ru_len); in phar_file_action()
230 if ((cwd = zend_memrchr(entry, '/', entry_len))) { in phar_file_action()
295 static void phar_do_403(char *entry, size_t entry_len) /* {{{ */ in phar_do_403() argument
309 …har *fname, size_t fname_len, char *f404, size_t f404_len, char *entry, size_t entry_len) /* {{{ */ in phar_do_404() argument
336 static void phar_postprocess_ru_web(char *fname, size_t fname_len, char **entry, size_t *entry_len,… in phar_postprocess_ru_web() argument
339 size_t e_len = *entry_len - 1, u_len = 0; in phar_postprocess_ru_web()
360 *entry_len = e_len + 1; in phar_postprocess_ru_web()
396 size_t fname_len, arch_len, entry_len; in PHP_METHOD() local
406 … 7) && SUCCESS == phar_split_fname(fname, fname_len, &arch, &arch_len, &entry, &entry_len, 2, 0)) { in PHP_METHOD()
432 size_t fname_len, arch_len, entry_len; in PHP_METHOD() local
457 … 7) && SUCCESS == phar_split_fname(fname, fname_len, &arch, &arch_len, &entry, &entry_len, 2, 0)) { in PHP_METHOD()
513 …} else if (SUCCESS == phar_split_fname(path, path_len, &arch, &arch_len, &entry, &entry_len, 2, 0)… in PHP_METHOD()
515 path_len = entry_len; in PHP_METHOD()
548 size_t entry_len; in PHP_METHOD() local
616 entry_len = Z_STRLEN_P(z_path_info); in PHP_METHOD()
617 entry = estrndup(Z_STRVAL_P(z_path_info), entry_len); in PHP_METHOD()
618 path_info = emalloc(Z_STRLEN_P(z_script_name) + entry_len + 1); in PHP_METHOD()
620 memcpy(path_info + Z_STRLEN_P(z_script_name), entry, entry_len + 1); in PHP_METHOD()
623 entry_len = 0; in PHP_METHOD()
643 entry_len = strlen(entry); in PHP_METHOD()
650 entry_len = 0; in PHP_METHOD()
664 entry_len = strlen(path_info); in PHP_METHOD()
665 entry_len -= (pt - path_info) + (fname_len - (basename - fname)); in PHP_METHOD()
666 entry = estrndup(pt + (fname_len - (basename - fname)), entry_len); in PHP_METHOD()
675 ZVAL_STRINGL(&params, entry, entry_len); in PHP_METHOD()
697 entry_len = Z_STRLEN_P(rewrite_fci.retval); in PHP_METHOD()
701 phar_do_403(entry, entry_len); in PHP_METHOD()
726 if (entry_len) { in PHP_METHOD()
727 phar_postprocess_ru_web(fname, fname_len, &entry, &entry_len, &ru, &ru_len); in PHP_METHOD()
730 if (!entry_len || (entry_len == 1 && entry[0] == '/')) { in PHP_METHOD()
735 entry_len = index_php_len; in PHP_METHOD()
738 ++entry_len; in PHP_METHOD()
743 entry_len = sizeof("/index.php")-1; in PHP_METHOD()
747 (info = phar_get_entry_info(phar, entry, entry_len, NULL, 0)) == NULL) { in PHP_METHOD()
748 phar_do_404(phar, fname, fname_len, f404, f404_len, entry, entry_len); in PHP_METHOD()
793 (info = phar_get_entry_info(phar, entry, entry_len, NULL, 0)) == NULL) { in PHP_METHOD()
794 phar_do_404(phar, fname, fname_len, f404, f404_len, entry, entry_len); in PHP_METHOD()
799 const char *ext = zend_memrchr(entry, '.', entry_len); in PHP_METHOD()
847 phar_file_action(phar, info, mime_type, code, entry, entry_len, fname, pt, ru, ru_len); in PHP_METHOD()
1101 size_t arch_len, entry_len; in PHP_METHOD() local
1129 …if (SUCCESS == phar_split_fname(fname, fname_len, &arch, &arch_len, &entry, &entry_len, !is_data, … in PHP_METHOD()
1279 size_t zname_len, arch_len, entry_len; in PHP_METHOD() local
1304 … 7) && SUCCESS == phar_split_fname(zname, zname_len, &arch, &arch_len, &entry, &entry_len, 2, 0)) { in PHP_METHOD()
4404 size_t arch_len, entry_len; in PHP_METHOD() local
4421 …/", 7) || phar_split_fname(fname, fname_len, &arch, &arch_len, &entry, &entry_len, 2, 0) == FAILUR… in PHP_METHOD()
4441 if ((entry_info = phar_get_entry_info_dir(phar_data, entry, entry_len, 1, &error, 1)) == NULL) { in PHP_METHOD()