Re: $http_response_header

From: Date: Fri, 27 Mar 2015 16:42:01 +0000
Subject: Re: $http_response_header
References: 1 2 3 4 5 6 7  Groups: php.internals 
Request: Send a blank email to internals+get-85510@lists.php.net to get a copy of this message
About $php_errormsg , we have error_get_last(). About $http_response_headers, we have no replacement. Why not get rid of both ?
I agree. Magically appearing variables are bad design and if we can get rid of them, PHP 7 is the time. -- Stas Malyshev smalyshev@gmail.com
did we miss the opportunity?
Maybe so. Truthfully, I came to the conclusion I did not want to propose removing $http_response_header unless we had a reasonable replacement for the somewhat common workflow of file_get_contents('http://...'); then usage of $http_response_header. I think there might be room to have added http_get_last_header(), or something to that effect. -ralph

« previous php.internals (#85510) next »