Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions NEWS
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,10 @@ PHP NEWS
- Session:
. Fix RC violation of session SID constant deprecation attribute. (ilutov)

- Standard:
. Fix GH-19610 (Deprecation warnings in functions taking as argument).
(Girgias)

- URI:
. Fixed memory management of Uri\WhatWg\Url objects. (timwolla)
. Fixed memory management of the internal "parse_url" URI parser.
Expand Down
2 changes: 2 additions & 0 deletions Zend/zend_compile.c
Original file line number Diff line number Diff line change
Expand Up @@ -7800,6 +7800,8 @@ static void zend_compile_params(zend_ast *ast, zend_ast *return_type_ast, uint32
ZSTR_VAL(name));
} else if (zend_string_equals(name, ZSTR_KNOWN(ZEND_STR_THIS))) {
zend_error_noreturn(E_COMPILE_ERROR, "Cannot use $this as parameter");
} else if (zend_string_equals_literal(name, "http_response_header")) {
CG(context).has_assigned_to_http_response_header = true;
}

if (op_array->fn_flags & ZEND_ACC_VARIADIC) {
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
--TEST--
$http_reponse_header as a parameter name should not warn
--FILE--
<?php

function foo($http_response_header) {
var_dump($http_response_header);
}

foo("OK");

?>
--EXPECT--
string(2) "OK"