Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:53792 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 90178 invoked from network); 8 Jul 2011 16:28:35 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 8 Jul 2011 16:28:35 -0000 Authentication-Results: pb1.pair.com header.from=rquadling@gmail.com; sender-id=pass Authentication-Results: pb1.pair.com smtp.mail=rquadling@gmail.com; spf=pass; sender-id=pass Received-SPF: pass (pb1.pair.com: domain gmail.com designates 209.85.216.170 as permitted sender) X-PHP-List-Original-Sender: rquadling@gmail.com X-Host-Fingerprint: 209.85.216.170 mail-qy0-f170.google.com Received: from [209.85.216.170] ([209.85.216.170:40807] helo=mail-qy0-f170.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id F7/F2-08539-330371E4 for ; Fri, 08 Jul 2011 12:28:35 -0400 Received: by qyg14 with SMTP id 14so406456qyg.8 for ; Fri, 08 Jul 2011 09:28:32 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=mime-version:reply-to:in-reply-to:references:from:date:message-id :subject:to:cc:content-type; bh=c+Y1rqIrHWn+K46x5q1WnSbRhCoMbw+HH85fv9QPVw0=; b=HZ2Irb/MK4ZVCRE09V/LD6SiZS5+PkhbZjvqxmDhx7LaCDyoek6owZy+zlI9OFNi5E 1Zoa/72EZjk5QNfeaxA8nGIViaf3FWU58KoyL/IwcXJFxCeQpYBKdB3exhAuLJVo2Lwh fiT4F8ZxhcC0XOMR2bLOD6LEI26LuuRIeXORo= Received: by 10.229.129.139 with SMTP id o11mr1752881qcs.17.1310142511087; Fri, 08 Jul 2011 09:28:31 -0700 (PDT) MIME-Version: 1.0 Received: by 10.229.122.136 with HTTP; Fri, 8 Jul 2011 09:28:11 -0700 (PDT) Reply-To: RQuadling@GMail.com In-Reply-To: References: Date: Fri, 8 Jul 2011 17:28:11 +0100 Message-ID: To: "DIXON P." Cc: internals@lists.php.net Content-Type: text/plain; charset=UTF-8 Subject: Re: [PHP-DEV] [PATCH] getimagesize - return named keys for width, height, type and attributes From: rquadling@gmail.com (Richard Quadling) On 8 July 2011 17:21, DIXON P. 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. 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