Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:10601 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 13478 invoked by uid 1010); 18 Jun 2004 19:05:53 -0000 Delivered-To: ezmlm-scan-internals@lists.php.net Delivered-To: ezmlm-internals@lists.php.net Received: (qmail 13433 invoked from network); 18 Jun 2004 19:05:52 -0000 Received: from unknown (HELO mail.zend.com) (80.74.107.235) by pb1.pair.com with SMTP; 18 Jun 2004 19:05:52 -0000 Received: (qmail 20951 invoked from network); 18 Jun 2004 19:05:51 -0000 Received: from localhost (HELO AndiNotebook.zend.com) (127.0.0.1) by localhost with SMTP; 18 Jun 2004 19:05:51 -0000 Message-ID: <5.1.0.14.2.20040618210529.01f98eb8@127.0.0.1> X-Sender: andi@127.0.0.1 X-Mailer: QUALCOMM Windows Eudora Version 5.1 Date: Fri, 18 Jun 2004 21:05:48 +0200 To: "Sara Golemon" ,internals@lists.php.net In-Reply-To: <20040618183418.85327.qmail@pb1.pair.com> References: <20040618162447.GP80292@bagend.shire> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii"; format=flowed Subject: Re: [PHP-DEV] Re: isset and unset behaviour From: andi@zend.com (Andi Gutmans) Yep, and thanks Sara for fixing it. At 11:34 AM 6/18/2004 -0700, Sara Golemon wrote: > > Although a double value isn't a valid array index, it doesn't seem > > to be consistent. I'm thinking that the code should yeild one of > > two results: > > > > 1. Issue warning as with using objects or arrays as keys > > 2. unset uses the str.val to retrieve the proper index. > > > > Any thoughts on the proper behaviour? > > >There was a typo in Zend/zend_execute.c. > >doubles used as indexes were being converted from the lval property of the >zval rather than the dval property. >This is similar to a bug that got patched about a month ago: $a[3.0] = 1; >acts like $a[0] = 1; just in a different spot. > >Fixed now. > >-Sara > >-- >PHP Internals - PHP Runtime Development Mailing List >To unsubscribe, visit: http://www.php.net/unsub.php