Re: [PATCH] getimagesize - return named keys for width, height, type and attributes
| From: | Richard Quadling | Date: | Fri, 08 Jul 2011 16:28:11 +0000 |
| Subject: | Re: [PATCH] getimagesize - return named keys for width, height, type and attributes | ||
| References: | 1 2 3 | Groups: | php.internals |
| Request: | Send a blank email to internals+get-53792@lists.php.net to get a copy of this message | ||
On 8 July 2011 17:21, DIXON P. <paul.dixon@durham.ac.uk> wrote:
> Thanks Richard,
>
> Renamed and attached.
>
> -----Original Message-----
> From: Richard Quadling [mailto:rquadling@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 July 2011 17:10, DIXON P. <paul.dixon@durham.ac.uk> wrote:
>> Hi,
>>
>> I've attached a patch ...
>
> Rename as .txt to get through the mailing list s/w.
For consistency, should bits and mime become 4 and 5?
This would work in the same way as using named capturing in a regex,
where you get both the position index and the name in the result array
and I think various db_fetch_as_array type functions also.
--
Richard Quadling
Twitter : EE : Zend : PHPDoc
@RQuadling : e-e.com/M_248814.html : bit.ly/9O8vFY : bit.ly/lFnVea