Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:21648 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 36749 invoked by uid 1010); 23 Jan 2006 15:08:18 -0000 Delivered-To: ezmlm-scan-internals@lists.php.net Delivered-To: ezmlm-internals@lists.php.net Received: (qmail 36734 invoked from network); 23 Jan 2006 15:08:18 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 23 Jan 2006 15:08:18 -0000 X-Host-Fingerprint: 70.85.46.36 unknown Received: from ([70.85.46.36:45788] helo=prohost.org) by pb1.pair.com (ecelerity 2.0 beta r(6323M)) with SMTP id 3E/6E-06819-161F4D34 for ; Mon, 23 Jan 2006 10:08:17 -0500 Received: (qmail 15001 invoked from network); 23 Jan 2006 15:08:15 -0000 Received: from prohost.org (HELO ?127.0.0.1?) (70.85.46.36) by prohost.org with SMTP; 23 Jan 2006 15:08:15 -0000 Message-ID: <43D4F15D.4000309@prohost.org> Date: Mon, 23 Jan 2006 10:08:13 -0500 User-Agent: Mozilla Thunderbird 1.0.7 (Windows/20050923) X-Accept-Language: en-us, en MIME-Version: 1.0 To: Hannes Magnusson CC: internals@lists.php.net References: <7f3ed2c30601230210k6927d05dke347e28c6ee1fa4@mail.gmail.com> In-Reply-To: <7f3ed2c30601230210k6927d05dke347e28c6ee1fa4@mail.gmail.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Subject: Re: [PHP-DEV] get_headers() improvements From: ilia@prohost.org (Ilia Alshanetsky) 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