$http_response_header

From: Date: Mon, 01 Dec 2014 22:28:04 +0000
Subject: $http_response_header
Groups: php.internals 
Request: Send a blank email to internals+get-79360@lists.php.net to get a copy of this message
Hi all, Many of you know from reading the subject line whats coming next! ;) In php, after we interact with HTTP streams (as a client), PHP conjures into local scope a variable with header information from the previous request $http_response_header. Is this behavior something we want to keep around into PHP 7? Or should we find a different/short-cut way to get the information. Currently, the same information can be ascertained, but only if there is an open file handle and only through stream_get_meta_data($fh). It would be nice if there were an as-easy approach to getting data without perhaps conjuring magic variables into the beloved local scope? Thoughts? Ralph Schindler PS Also, do we have any other local-scope variables like this?

« previous php.internals (#79360) next »