Skip to content

include/functions.php: PHP Deprecated: The predefined locally scoped $http_response_header .... #4

@Gerdix

Description

@Gerdix

Hi Visman,
I'm currently testing PunBB on PHP 8.5.2. Today I received this message in my error log: PHP Deprecated: The predefined locally scoped $http_response_header variable is deprecated, call http_get_last_response_headers() instead in C:\xampp\htdocs\punbb\include\functions.php on line 384 (line numbering adjusted to your script).

"This variable is deprecated since PHP 8.5, and will disappear in PHP 9.0."

What's puzzling me a bit is this on lines 380 to 382:
if (function_exists('http_get_last_response_headers')) {
$http_response_header = http_get_last_response_headers();
}

I don't have this statement in my script at all. I may have removed it several months ago, when the script was still running on PHP 8.4.8, due to a different related error. But that's just one thought of mine.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions