Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit 8a9bdcf

Browse files
[skip ci] Keep code for PHP 9.0 in comment
1 parent fc15db4 commit 8a9bdcf

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

‎ext/standard/head.c

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -378,6 +378,9 @@ PHP_FUNCTION(http_response_code)
378378

379379
if (SG(sapi_headers).http_status_line) {
380380
php_error_docref(NULL, E_WARNING, "Calling http_response_code() after header('HTTP/...') has no effect. This will change in PHP 9.0");
381+
// TODO: Uncomment in PHP 9.0
382+
// efree(SG(sapi_headers).http_status_line);
383+
// SG(sapi_headers).http_status_line = NULL;
381384
}
382385

383386
zend_long old_response_code;

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /