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
smalys...@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
--
PHP Internals - PHP Runtime Development Mailing List
To unsubscribe, visit: http://www.php.net/unsub.php