Skip to content

Issue with 1.8.200 - Improved PHP 8.5 compatibility #5137

@sofl88

Description

@sofl88

Hello.

After changing $http_response_header to $http_response_header_local

1.8.199...1.8.200#diff-6d5877e96852a677f1d6a3d8386229797fe37d239d2dfc9bdf93d1aae2b1cb8aR323-R325

function () use ($uri, &$http_response_header_local, $context, $options) {

$this->lastHeaders = $http_response_header_local;

I get the following error

Type error: array_shift(): Argument #1 ($array) must be of type array, null given

$parts = explode(' ', array_shift($hdrs), 3);

To be fair, I have some adjustments to establish an aws-s3 connection but in any case the $this->lastHeaders property should be NULL since $http_response_header is an auto filled variable in php https://www.php.net/manual/de/reserved.variables.httpresponseheader.php

Is this a mistake or is this intended?

Thanks in advance

PHP version: 8.3.29
FreeScout version: 1.8.201
Database: MySQL
Are you using CloudFlare: No
Are you using non-official modules: Yes

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