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