[PATCH] getimagesize - return named keys for width, height, type and attributes
| From: | DIXON P. | Date: | Fri, 08 Jul 2011 16:10:24 +0000 |
| Subject: | [PATCH] getimagesize - return named keys for width, height, type and attributes | ||
| Groups: | php.internals | ||
| Request: | Send a blank email to internals+get-53788@lists.php.net to get a copy of this message | ||
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.
Regards,
Paul Dixon