Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:42458 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 87380 invoked from network); 3 Jan 2009 12:30:51 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 3 Jan 2009 12:30:51 -0000 Authentication-Results: pb1.pair.com header.from=felipensp@gmail.com; sender-id=pass; domainkeys=bad Authentication-Results: pb1.pair.com smtp.mail=felipensp@gmail.com; spf=pass; sender-id=pass Received-SPF: pass (pb1.pair.com: domain gmail.com designates 74.125.46.29 as permitted sender) DomainKey-Status: bad X-DomainKeys: Ecelerity dk_validate implementing draft-delany-domainkeys-base-01 X-PHP-List-Original-Sender: felipensp@gmail.com X-Host-Fingerprint: 74.125.46.29 yw-out-2324.google.com Received: from [74.125.46.29] ([74.125.46.29:54886] helo=yw-out-2324.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 09/01-12810-A7A5F594 for ; Sat, 03 Jan 2009 07:30:51 -0500 Received: by yw-out-2324.google.com with SMTP id 5so3100032ywb.83 for ; Sat, 03 Jan 2009 04:30:47 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:subject:from:to:cc :in-reply-to:references:content-type:date:message-id:mime-version :x-mailer:content-transfer-encoding; bh=KY0xZIZfkNATYzPUGKcX32jRTSFGIaMqtOFcGVsqZJc=; b=H4l7/X7+Z8hIQUkWrjJ0SlpJ02voJucqg4QLPWRGM06dhdnH+pNxqn/tkSmAG/fQ1F DEehBY654e5V/De8oy8BDwxRGSaeeCEdma+ECUgxIj80sXSl7eAm1KD2Lqz208Cph99i LGWD6T0qoFvsrZZONYJmWRTMkWwH2B+IaAfdQ= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=subject:from:to:cc:in-reply-to:references:content-type:date :message-id:mime-version:x-mailer:content-transfer-encoding; b=jUtqbLgJepxGuxPvJg/18QEIpKuXwKxzW5hvaUE6q0tD4DXVoxud3IRJafYr0m8R5m KanxViB82azeu0kBh/W4yA/lS8JLI0NY/WyS5zm/YSU7r1ZCsLsB35XzZOmV29SBtsxl EVK+PWZ7bNb7Vv69z793efo51AUcVxw6KmNuw= Received: by 10.100.131.16 with SMTP id e16mr10234649and.67.1230985847193; Sat, 03 Jan 2009 04:30:47 -0800 (PST) Received: from ?192.168.1.3? ([189.24.9.99]) by mx.google.com with ESMTPS id d12sm33190653and.22.2009.01.03.04.30.45 (version=TLSv1/SSLv3 cipher=RC4-MD5); Sat, 03 Jan 2009 04:30:46 -0800 (PST) To: shire@php.net Cc: PHP Internals List In-Reply-To: <1230985623.3243.3.camel@pena> References: <495EF18A.7040206@php.net> <1230985623.3243.3.camel@pena> Content-Type: text/plain; charset=utf-8 Date: Sat, 03 Jan 2009 10:31:30 -0200 Message-ID: <1230985890.3243.6.camel@pena> Mime-Version: 1.0 X-Mailer: Evolution 2.22.3.1 Content-Transfer-Encoding: 8bit Subject: Re: [PHP-DEV] PATCH: bug #46701 From: felipensp@gmail.com (Felipe Pena) Em Sáb, 2009-01-03 às 10:27 -0200, Felipe Pena escreveu: > Em Sex, 2009-01-02 às 21:03 -0800, shire escreveu: > > 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 > > > > > > I suppose that should we also change the fetch (ZEND_FETCH_DIM_*)? > > And probably: > case IS_DOUBLE: > index = (long)Z_DVAL_P(dim); > goto num_index; > > And zend_execute.c (zend_fetch_dimension_address_inner) will be > superfluous with this change. Errr, I mean, the case IS_DOUBLE stuff in zend_fetch_dimension_address_inner will be superfluous. > > > > Thanks, > > -shire > > -- Regards, Felipe Pena