PHP 4.0 Bug #10149 Updated: array_pop reorders array keys
| From: | cnewbill@php.net | Date: | Wed, 04 Apr 2001 04:49:52 +0000 |
| Subject: | PHP 4.0 Bug #10149 Updated: array_pop reorders array keys | ||
| Groups: | php.dev | ||
| Request: | Send a blank email to php-dev+get-50798@lists.php.net to get a copy of this message | ||
ID: 10149
Updated by: cnewbill
Reported By: spinn@spinnwebe.com
Old-Status: Open
Status: Closed
Bug Type: Scripting Engine problem
Assigned To:
Comments:
Closing, duplicate of 5226.
-Chris
Previous Comments:
---------------------------------------------------------------------------
[2001-04-04 00:25:40] spinn@spinnwebe.com
This is a repeat of 5226, but I couldn't add anything without a password, which I didn't
have.
In that bug, stas@cvs.php.net didn't understand the example that was given. What happens is
this: if you have
$a[5]="five";
$a[6]="six";
and then do array_pop($a), you now have $a[0]="five", not $a[5]="five", as I
would expect.
Despite not understanding the example, stas answered the question: that's the way the zend
engine works. But you don't see that as a problem?
---------------------------------------------------------------------------
ATTENTION! Do NOT reply to this email!
To reply, use the web interface found at http://bugs.php.net/?id=10149&edit=2