Skip to content

Commit

Permalink
fix: getallheaders() must return request headers (#772)
Browse files Browse the repository at this point in the history
* fix: getallheaders() must return request headers

* cs
  • Loading branch information
dunglas authored May 8, 2024
1 parent 12fb11e commit ea5e19f
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion frankenphp.stub.php
Original file line number Diff line number Diff line change
Expand Up @@ -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 {}

Expand Down
4 changes: 2 additions & 2 deletions frankenphp_arginfo.h
Original file line number Diff line number Diff line change
@@ -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)
Expand Down Expand Up @@ -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)
Expand Down

0 comments on commit ea5e19f

Please sign in to comment.