Skip to content

http_response_header missing #415

Open
@diversen

Description

@diversen

Great library, thanks 👍

When using safe functions you lose access to $http_response_header.
$http_response_header is created in the local scope.

I guess there is no fix for this? I could not find anything about this issue after searching a bit.

<?php

require_once "vendor/autoload.php";

use function Safe\file_get_contents;

file_get_contents("https://google.com");
var_dump($http_response_header);

// -> Warning: Undefined variable $http_response_header in ...

It is the same with e.g. fopen.

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions