Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:53788 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 83619 invoked from network); 8 Jul 2011 16:10:46 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 8 Jul 2011 16:10:46 -0000 Authentication-Results: pb1.pair.com header.from=paul.dixon@durham.ac.uk; sender-id=pass Authentication-Results: pb1.pair.com smtp.mail=paul.dixon@durham.ac.uk; spf=pass; sender-id=pass Received-SPF: pass (pb1.pair.com: domain durham.ac.uk designates 129.234.248.1 as permitted sender) X-PHP-List-Original-Sender: paul.dixon@durham.ac.uk X-Host-Fingerprint: 129.234.248.1 hermes1.dur.ac.uk Linux 2.6 Received: from [129.234.248.1] ([129.234.248.1:33672] helo=hermes1.dur.ac.uk) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 9F/81-08539-10C271E4 for ; Fri, 08 Jul 2011 12:10:44 -0400 Received: from DURMAIL2.mds.ad.dur.ac.uk (durmail2b.dur.ac.uk [10.234.250.7]) by hermes1.dur.ac.uk (8.13.8/8.13.7) with ESMTP id p68GAOXG017605 for ; Fri, 8 Jul 2011 17:10:28 +0100 X-MimeOLE: Produced By Microsoft Exchange V6.5 Content-class: urn:content-classes:message MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="----_=_NextPart_001_01CC3D89.8B5B45DE" Date: Fri, 8 Jul 2011 17:10:24 +0100 Message-ID: X-MS-Has-Attach: yes X-MS-TNEF-Correlator: Thread-Topic: [PATCH] getimagesize - return named keys for width, height, type and attributes Thread-Index: Acw9iPqirVusXkCMQh+Fu4QcMBk6fA== To: X-DurhamAcUk-MailScanner-ID: p68GAOXG017605 X-DurhamAcUk-MailScanner: Found to be clean Subject: [PATCH] getimagesize - return named keys for width, height, type and attributes From: paul.dixon@durham.ac.uk ("DIXON P.") ------_=_NextPart_001_01CC3D89.8B5B45DE Content-Type: text/plain; charset="US-ASCII" Content-Transfer-Encoding: quoted-printable 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 ------_=_NextPart_001_01CC3D89.8B5B45DE--