From ea5e19ff4b7ceb10dca66af6f42a18f696cd1494 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?K=C3=A9vin=20Dunglas?= Date: Wed, 8 May 2024 11:43:39 +0200 Subject: [PATCH] fix: getallheaders() must return request headers (#772) * fix: getallheaders() must return request headers * cs --- frankenphp.stub.php | 2 +- frankenphp_arginfo.h | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/frankenphp.stub.php b/frankenphp.stub.php index d166dc5..6c5a71c 100644 --- a/frankenphp.stub.php +++ b/frankenphp.stub.php @@ -21,7 +21,7 @@ function frankenphp_request_headers(): array {} function apache_request_headers(): array {} /** - * @alias frankenphp_response_headers + * @alias frankenphp_request_headers */ function getallheaders(): array {} diff --git a/frankenphp_arginfo.h b/frankenphp_arginfo.h index c343e9f..ec97502 100644 --- a/frankenphp_arginfo.h +++ b/frankenphp_arginfo.h @@ -1,5 +1,5 @@ /* This is a generated file, edit the .stub.php file instead. - * Stub hash: 467f1406e17d3b8ca67bba5ea367194e60d8dd27 */ + * Stub hash: 05ebde17137c559e891362fba6524fad1e0a2dfe */ ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_frankenphp_handle_request, 0, 1, _IS_BOOL, 0) @@ -47,7 +47,7 @@ static const zend_function_entry ext_functions[] = { ZEND_FALIAS(apache_request_headers, frankenphp_request_headers, arginfo_apache_request_headers) - ZEND_FALIAS(getallheaders, frankenphp_response_headers, + ZEND_FALIAS(getallheaders, frankenphp_request_headers, arginfo_getallheaders) ZEND_FE(frankenphp_response_headers, arginfo_frankenphp_response_headers)