note 130564 added to function.http-get-last-response-headers
| From: | rene@renux.de | Date: | Thu, 04 Dec 2025 11:20:10 +0000 |
| Subject: | note 130564 added to function.http-get-last-response-headers | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-222444@lists.php.net to get a copy of this message | ||
For PHP versions < 8.4, you can write a polyfill to be prepared for the future:
if ( ! function_exists("http_get_last_response_headers") ) {
function http_get_last_response_headers() {
if ( ! isset($http_response_header) ) {
return null;
}
return $http_response_header;
}
}
----
Server IP: 206.189.2.9
Probable Submitter: 89.245.135.149
----
Manual Page -- https://php.net/manual/en/function.http-get-last-response-headers.php
Edit -- https://main.php.net/note/edit/130564
Del: integrated -- https://main.php.net/note/delete/130564/integrated
Del: useless -- https://main.php.net/note/delete/130564/useless
Del: bad code -- https://main.php.net/note/delete/130564/bad+code
Del: spam -- https://main.php.net/note/delete/130564/spam
Del: non-english -- https://main.php.net/note/delete/130564/non-english
Del: in docs -- https://main.php.net/note/delete/130564/in+docs
Del: other reasons-- https://main.php.net/note/delete/130564
Reject -- https://main.php.net/note/reject/130564
Search -- https://main.php.net/manage/user-notes.php