Re: Broken PHP4 Function

From: Date: Tue, 05 Sep 2000 14:11:18 +0000
Subject: Re: Broken PHP4 Function
References: 1 2 3  Groups: php.dev 
Request: Send a blank email to php-dev+get-32166@lists.php.net to get a copy of this message
On Tue, Sep 05, 2000 at 08:48:15AM -0500, Andrei Zmievski wrote: > On Mon, 04 Sep 2000, Ron Chmara wrote: > > The docs note that the keys are preserved. > > Eh, this is wrong, IMHO. The keys should not be preserved, the duplicate > entries should be deleted entirely. I'm going to put a fix in for this. I agree, I'm a bit surprised though, I thought zend_hash_index_del(return_value->value.ht, p->h); would delete both. I was going to volunteer to fix it, but I guess it's just as well that you do it so I can see how it should be done (: I want and expected the result to be $new_array[0] = "zero"; $new_array[1] = "one"; $new_array[3] = "two"; Sorry about the bug, Stig

« previous php.dev (#32166) next »