Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:53718 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 29593 invoked from network); 1 Jul 2011 16:51:29 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 1 Jul 2011 16:51:29 -0000 Authentication-Results: pb1.pair.com header.from=smalyshev@sugarcrm.com; sender-id=pass Authentication-Results: pb1.pair.com smtp.mail=smalyshev@sugarcrm.com; spf=pass; sender-id=pass Received-SPF: pass (pb1.pair.com: domain sugarcrm.com designates 67.192.241.133 as permitted sender) X-PHP-List-Original-Sender: smalyshev@sugarcrm.com X-Host-Fingerprint: 67.192.241.133 smtp133.dfw.emailsrvr.com Linux 2.6 Received: from [67.192.241.133] ([67.192.241.133:56981] helo=smtp133.dfw.emailsrvr.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id E1/32-07537-F0BFD0E4 for ; Fri, 01 Jul 2011 12:51:28 -0400 Received: from localhost (localhost.localdomain [127.0.0.1]) by smtp23.relay.dfw1a.emailsrvr.com (SMTP Server) with ESMTP id 5126B2F8519; Fri, 1 Jul 2011 12:51:25 -0400 (EDT) X-Virus-Scanned: OK Received: by smtp23.relay.dfw1a.emailsrvr.com (Authenticated sender: smalyshev-AT-sugarcrm.com) with ESMTPSA id DAD4C2F8523; Fri, 1 Jul 2011 12:51:24 -0400 (EDT) Message-ID: <4E0DFB0C.6090602@sugarcrm.com> Date: Fri, 01 Jul 2011 09:51:24 -0700 Organization: SugarCRM User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.6; rv:5.0) Gecko/20110624 Thunderbird/5.0 MIME-Version: 1.0 To: Hannes Magnusson CC: =?UTF-8?B?RGF2aWQgWsO8bGtl?= , Michael Maclean , PHP internals References: <4E0CE015.80503@no-surprises.co.uk> <4E0CEAC5.3070800@sugarcrm.com> <4E0CEBDC.6050206@no-surprises.co.uk> <4E0D06C9.2030102@sugarcrm.com> <2535D0F7-57FE-4BA9-8815-13884F5C6EE7@bitextender.com> In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit Subject: Re: [PHP-DEV] Improvements to HTTP stream metadata From: smalyshev@sugarcrm.com (Stas Malyshev) Hi! On 7/1/11 3:08 AM, Hannes Magnusson wrote: > I use it extensively. Its nearly the only way to get the headers from > file_get_contents() for example. We could have a function, like stream_get_last_headers() or something like that (like all DBs do, for example, which have exactly the same issue with no handle on error). Injecting random variables in scope is not usually the best way... -- Stanislav Malyshev, Software Architect SugarCRM: http://www.sugarcrm.com/ (408)454-6900 ext. 227