Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:42456 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 21361 invoked from network); 3 Jan 2009 05:03:13 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 3 Jan 2009 05:03:13 -0000 Authentication-Results: pb1.pair.com smtp.mail=shire@php.net; spf=unknown; sender-id=unknown Authentication-Results: pb1.pair.com header.from=shire@php.net; sender-id=unknown Received-SPF: unknown (pb1.pair.com: domain php.net does not designate 69.63.177.213 as permitted sender) X-PHP-List-Original-Sender: shire@php.net X-Host-Fingerprint: 69.63.177.213 sizzo.org Linux 2.6 Received: from [69.63.177.213] ([69.63.177.213:44377] helo=sizzo.org) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 17/64-17214-E81FE594 for ; Sat, 03 Jan 2009 00:03:13 -0500 Received: from shirebook.tekrat.com (dsl092-189-079.sfo1.dsl.speakeasy.net [66.92.189.79]) (using TLSv1 with cipher DHE-RSA-CAMELLIA256-SHA (256/256 bits)) (No client certificate requested) by sizzo.org (Postfix) with ESMTPSA id 9B74C4FA46B for ; Fri, 2 Jan 2009 21:03:07 -0800 (PST) Message-ID: <495EF18A.7040206@php.net> Date: Fri, 02 Jan 2009 21:03:06 -0800 Reply-To: shire@php.net User-Agent: Postbox 1.0b1 (Macintosh/2008121616) MIME-Version: 1.0 To: PHP Internals List Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Subject: PATCH: bug #46701 From: shire@php.net (shire) I've created a patch for bug #46701 (http://bugs.php.net/bug.php?id=46701) but it requires Zend changes, it can be found at the links below for all branches. I've verified all tests pass. We may want to verify it for other architectures due to the nature of it being a float conversion problem, I tested on Intel OS X 10.5.5. But this should at least be equivalent to $array[intval($double)] now. http://tekrat.com/patches/bug46701.php6.patch http://tekrat.com/patches/bug46701.php53.patch http://tekrat.com/patches/bug46701.php52.patch Thanks, -shire