Re: Improvements to HTTP stream metadata
| From: | David Zülke | Date: | Fri, 01 Jul 2011 08:18:02 +0000 |
| Subject: | Re: Improvements to HTTP stream metadata | ||
| References: | 1 2 3 4 | Groups: | php.internals |
| Request: | Send a blank email to internals+get-53716@lists.php.net to get a copy of this message | ||
On 01.07.2011, at 01:29, Stas Malyshev wrote:
> Hi!
>
> On 6/30/11 2:34 PM, Michael Maclean wrote:
>> The same data also ends up in the bizarre $http_response_headers var
>> that gets spontaneously created in local scope - I've wondered about how
>> good that is to do.
>
> This thing is indeed bizzare. I wonder if anybody uses it and why it was done this way...
I've used it before... IIRC, it was because that var gets set on older PHP versions even if the
HTTP response is an error (in which case the stream is destroyed and you can't get the metadata
anymore either; newer versions have the "ignore_errors" context option for that).
David
Attachment: [application/pkcs7-signature] smime.p7s
Attachment: [application/pkcs7-signature] smime.p7s