RE: [PHP-DEV] [PATCH] getimagesize - return named keys for width, height, type and attributes

2011-07-13 Thread DIXON P.
I hadn’t thought of list(). I've update the patch (attached) so that each value has both an indexed and associative entry in the returned array, so that it will still work with list(). Paul -Original Message- From: Alexey Shein [mailto:con...@gmail.com] Sent: 12 July 2011 10:44 To:

[PHP-DEV] [PATCH] getimagesize - return named keys for width, height, type and attributes

2011-07-08 Thread DIXON P.
Hi, I've attached a patch for getimagesize() that returns named keys for image width, height, type and attributes values. The equivalent numeric keys 0, 1,2 and 3 are still returned but could perhaps be deprecated in the future? The patch also contains updated tests to reflect the change.

RE: [PHP-DEV] [PATCH] getimagesize - return named keys for width, height, type and attributes

2011-07-08 Thread DIXON P.
Thanks Richard, Renamed and attached. -Original Message- From: Richard Quadling [mailto:rquadl...@gmail.com] Sent: 08 July 2011 17:13 To: DIXON P. Cc: internals@lists.php.net Subject: Re: [PHP-DEV] [PATCH] getimagesize - return named keys for width, height, type and attributes On 8