Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:20713 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 70348 invoked by uid 1010); 28 Nov 2005 11:39:22 -0000 Delivered-To: ezmlm-scan-internals@lists.php.net Delivered-To: ezmlm-internals@lists.php.net Received: (qmail 70333 invoked from network); 28 Nov 2005 11:39:22 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 28 Nov 2005 11:39:22 -0000 X-Host-Fingerprint: 66.249.82.192 xproxy.gmail.com Linux 2.4/2.6 Received: from ([66.249.82.192:25238] helo=xproxy.gmail.com) by pb1.pair.com (ecelerity 2.0 beta r(6323M)) with SMTP id AB/D3-21657-96CEA834 for ; Mon, 28 Nov 2005 06:39:22 -0500 Received: by xproxy.gmail.com with SMTP id t10so1081109wxc for ; Mon, 28 Nov 2005 03:39:18 -0800 (PST) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:sender:to:subject:cc:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=Wjw6sLnrwTYJP7l6sd1XU+iHur6kDbpe74GypvmUyACsj3jUOdClmWUH2SSgwa7PDddcFmkRF/VxplJi2gKR1aoLo/oPhL/y7k4BB5nWVOzCl7jWBCj9zVeNObNgYAEk6Pmc6gORGogUOY+qkuboLLl5CQviE5wlZziPgiIrypo= Received: by 10.70.15.17 with SMTP id 17mr9201886wxo; Mon, 28 Nov 2005 03:39:18 -0800 (PST) Received: by 10.70.41.10 with HTTP; Mon, 28 Nov 2005 03:39:18 -0800 (PST) Message-ID: <7f3ed2c30511280339w2bbf376r4d97f569184a33a7@mail.gmail.com> Date: Mon, 28 Nov 2005 12:39:18 +0100 Sender: hannes.magnusson@gmail.com To: =?ISO-8859-1?Q?Arnar_Mar_Sigur=F0sson?= Cc: internals@lists.php.net In-Reply-To: <5F.71.11378.AFD86834@pb1.pair.com> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Content-Disposition: inline References: <5F.71.11378.AFD86834@pb1.pair.com> Subject: Re: [PHP-DEV] get_headers patch From: bjori@php.net (Hannes Magnusson) On 11/25/05, Arnar Mar Sigur=F0sson wrote: > This is a update of the get_headers patch i sent in a long time ago and w= as > ignored. Patch is written with the latest cvs snapshot of 5.1. Hope it ma= kes it > way to 5.1.1 > > Info: > > mixed get_headers ( string url [, bool format | string header [,resource = context]]) > > 2nd arg can eather be bool or string > bool: > true returns an numeric indexed array with headers > false returns key index array with header name as key > string: > returns only the header with the same name. > > passing long will cast E_STRICT but still work the old way > > 3nd arg is a context to pass header/data to the url. hmh. true, as 2nd parameter, returns associative array, false numeric. The patch seems to apply cleanly to HEAD, to. Any change this could be committed? - Hannes