Re: get_headers() improvements

From: Date: Mon, 23 Jan 2006 15:08:13 +0000
Subject: Re: get_headers() improvements
References: 1  Groups: php.internals 
Request: Send a blank email to internals+get-21648@lists.php.net to get a copy of this message
Hannes Magnusson wrote:
Hi all Isn't http://news.php.net/php.cvs/36579 fix for #34059 ? (not mentioned in the NEWS file - and the report is still open).
The patch addresses the feature request you've mentioned, I've closed that particular bug.
Ilias previous get_headers() patch (http://news.php.net/php.cvs/36564) allows get_headers() to use "default context" set by stream_context_get_default() (which btw is quite weird name to *set* default context).. ..but it doesn't take context argument so I would need to run stream_context_get_default() before calling get_headers() and then change it back by running stream_context_get_default() again...
That's correct. There are no plans to add support for feature #34058, this cannot be done efficiently since requesting one field would require PHP to remake the request each time. Or have to buffer the response headers in memory and so on. Ilia

« previous php.internals (#21648) next »