Lines Matching refs:entry_len

48 static void phar_mung_server_vars(char *fname, char *entry, size_t entry_len, char *basename, size_…  in phar_mung_server_vars()  argument
68 if (code > (size_t)entry_len && !memcmp(path_info, entry, entry_len)) { in phar_mung_server_vars()
70 ZVAL_STRINGL(stuff, path_info + entry_len, request_uri_len); in phar_mung_server_vars()
116 ZVAL_STRINGL(stuff, entry, entry_len); in phar_mung_server_vars()
134 …, phar_entry_info *info, char *mime_type, int code, char *entry, size_t entry_len, char *arch, cha… in phar_file_action() argument
212 phar_mung_server_vars(arch, entry, entry_len, basename, ru_len); in phar_file_action()
233 if ((cwd = zend_memrchr(entry, '/', entry_len))) { in phar_file_action()
299 static void phar_do_403(char *entry, size_t entry_len) /* {{{ */ in phar_do_403() argument
313 …har *fname, size_t fname_len, char *f404, size_t f404_len, char *entry, size_t entry_len) /* {{{ */ in phar_do_404() argument
340 static void phar_postprocess_ru_web(char *fname, size_t fname_len, char **entry, size_t *entry_len,… in phar_postprocess_ru_web() argument
343 size_t e_len = *entry_len - 1, u_len = 0; in phar_postprocess_ru_web()
364 *entry_len = e_len + 1; in phar_postprocess_ru_web()
401 size_t fname_len, arch_len, entry_len; in PHP_METHOD() local
411 … 7) && SUCCESS == phar_split_fname(fname, fname_len, &arch, &arch_len, &entry, &entry_len, 2, 0)) { in PHP_METHOD()
438 size_t fname_len, arch_len, entry_len; in PHP_METHOD() local
453 … 7) && SUCCESS == phar_split_fname(fname, fname_len, &arch, &arch_len, &entry, &entry_len, 2, 0)) { in PHP_METHOD()
508 …} else if (SUCCESS == phar_split_fname(path, path_len, &arch, &arch_len, &entry, &entry_len, 2, 0)… in PHP_METHOD()
510 path_len = entry_len; in PHP_METHOD()
534 size_t entry_len; in PHP_METHOD() local
600 entry_len = Z_STRLEN_P(z_path_info); in PHP_METHOD()
601 entry = estrndup(Z_STRVAL_P(z_path_info), entry_len); in PHP_METHOD()
602 path_info = emalloc(Z_STRLEN_P(z_script_name) + entry_len + 1); in PHP_METHOD()
604 memcpy(path_info + Z_STRLEN_P(z_script_name), entry, entry_len + 1); in PHP_METHOD()
607 entry_len = 0; in PHP_METHOD()
627 entry_len = strlen(entry); in PHP_METHOD()
634 entry_len = 0; in PHP_METHOD()
648 entry_len = strlen(path_info); in PHP_METHOD()
649 entry_len -= (pt - path_info) + (fname_len - (basename - fname)); in PHP_METHOD()
650 entry = estrndup(pt + (fname_len - (basename - fname)), entry_len); in PHP_METHOD()
661 ZVAL_STRINGL(&params, entry, entry_len); in PHP_METHOD()
705 entry_len = Z_STRLEN_P(fci.retval); in PHP_METHOD()
709 phar_do_403(entry, entry_len); in PHP_METHOD()
729 if (entry_len) { in PHP_METHOD()
730 phar_postprocess_ru_web(fname, fname_len, &entry, &entry_len, &ru, &ru_len); in PHP_METHOD()
733 if (!entry_len || (entry_len == 1 && entry[0] == '/')) { in PHP_METHOD()
738 entry_len = index_php_len; in PHP_METHOD()
741 ++entry_len; in PHP_METHOD()
746 entry_len = sizeof("/index.php")-1; in PHP_METHOD()
750 (info = phar_get_entry_info(phar, entry, entry_len, NULL, 0)) == NULL) { in PHP_METHOD()
751 phar_do_404(phar, fname, fname_len, f404, f404_len, entry, entry_len); in PHP_METHOD()
796 (info = phar_get_entry_info(phar, entry, entry_len, NULL, 0)) == NULL) { in PHP_METHOD()
797 phar_do_404(phar, fname, fname_len, f404, f404_len, entry, entry_len); in PHP_METHOD()
805 const char *ext = zend_memrchr(entry, '.', entry_len); in PHP_METHOD()
853 phar_file_action(phar, info, mime_type, code, entry, entry_len, fname, pt, ru, ru_len); in PHP_METHOD()
1118 size_t arch_len, entry_len; in PHP_METHOD() local
1146 …if (SUCCESS == phar_split_fname(fname, fname_len, &arch, &arch_len, &entry, &entry_len, !is_data, … in PHP_METHOD()
1300 size_t zname_len, arch_len, entry_len; in PHP_METHOD() local
1325 … 7) && SUCCESS == phar_split_fname(zname, zname_len, &arch, &arch_len, &entry, &entry_len, 2, 0)) { in PHP_METHOD()
4445 size_t arch_len, entry_len; in PHP_METHOD() local
4462 …/", 7) || phar_split_fname(fname, fname_len, &arch, &arch_len, &entry, &entry_len, 2, 0) == FAILUR… in PHP_METHOD()
4482 if ((entry_info = phar_get_entry_info_dir(phar_data, entry, entry_len, 1, &error, 1)) == NULL) { in PHP_METHOD()