Re: get_headers patch

From: Date: Mon, 28 Nov 2005 11:39:18 +0000
Subject: Re: get_headers patch
References: 1  Groups: php.internals 
Request: Send a blank email to internals+get-20713@lists.php.net to get a copy of this message
On 11/25/05, Arnar Mar Sigurðsson <arnar@8.is> wrote: > This is a update of the get_headers patch i sent in a long time ago and was > ignored. Patch is written with the latest cvs snapshot of 5.1. Hope it makes 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

« previous php.internals (#20713) next »