Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:42457 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 85747 invoked from network); 3 Jan 2009 12:26:26 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 3 Jan 2009 12:26:26 -0000 Authentication-Results: pb1.pair.com smtp.mail=felipensp@gmail.com; spf=pass; sender-id=pass Authentication-Results: pb1.pair.com header.from=felipensp@gmail.com; sender-id=pass; domainkeys=bad Received-SPF: pass (pb1.pair.com: domain gmail.com designates 74.125.44.30 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.44.30 yx-out-2324.google.com Received: from [74.125.44.30] ([74.125.44.30:51249] helo=yx-out-2324.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 44/B0-12810-F695F594 for ; Sat, 03 Jan 2009 07:26:24 -0500 Received: by yx-out-2324.google.com with SMTP id 3so3105343yxj.83 for ; Sat, 03 Jan 2009 04:26:21 -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=BXDtvc3yxfiH7z8owgDF9TPPoglGkbGYdqdAW1ETsgE=; b=m5g1lGr4OmF26hrCakNNTzwRLU6YET22OCqL9WpyMxyEdPCSGVxjmGVI24p9GQJkSv WF6aIaBPV4z+FBd//b4RXzGi1Ct8x7TnjtivVyL34qkh+kRh0MuHzG/wYHgqnRYct5rx KGkhojpvEnfclsKRmT6Ke2UVB3bI4peF4rWj0= 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=XQdlzBIJipFlqPD7oJFs0+BjDSibYBLYWE+ItdVkKTZ5wlH0bOpsJmaOyoileXk7Ks TVBPgMioJ+6G+FTsZUoE5ulbv7qcvKiHVNuqoZAjLzgN1Hfi3WGdQ9YnzOlw6WqwRKNY lQdrcHypVr0HZcvM8gzvpDcg8U95xUOedz/fw= Received: by 10.100.31.10 with SMTP id e10mr10232462ane.83.1230985580800; Sat, 03 Jan 2009 04:26:20 -0800 (PST) Received: from ?192.168.1.3? ([189.24.9.99]) by mx.google.com with ESMTPS id c29sm33354478anc.49.2009.01.03.04.26.19 (version=TLSv1/SSLv3 cipher=RC4-MD5); Sat, 03 Jan 2009 04:26:20 -0800 (PST) To: shire@php.net Cc: PHP Internals List In-Reply-To: <495EF18A.7040206@php.net> References: <495EF18A.7040206@php.net> Content-Type: text/plain; charset=utf-8 Date: Sat, 03 Jan 2009 10:27:03 -0200 Message-ID: <1230985623.3243.3.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 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. > Thanks, > -shire > -- Regards, Felipe Pena