Bug on PHP's version 4.3.1?

From: Date: Thu, 22 May 2003 21:14:20 +0000
Subject: Bug on PHP's version 4.3.1?
Groups: php.general 
Request: Send a blank email to php-general+get-148644@lists.php.net to get a copy of this message
Folks, I'd like to know if anyone here knows about a bug on PHP's version 4.3.1 related with the functions: ARRAY_PUSH and ARRAY_SHIFT. I've got a system which uses version 4.2.1 and I need to upgrade it to 4.3.1. However see by yourself what happens: => Simulation on 4.2.1: Before push: array(0) { } After push: array(1) { [0]=> string(3) "ddd" } Before shift : array(1) { [0]=> string(3) "ddd" } After shift : array(0) { } Before push : array(0) { } After push : array(1) { *[0]*=> string(6) "estado" } This is the expected result for the first index to be 0. However running the same system on version 4.3.1 it happens: => Simulation on 4.3.1 Before push: array(0) { } After push: array(1) { [0]=> string(3) "ddd" } Before shift: array(1) { [0]=> string(3) "ddd" } After shift: array(0) { } Before push : array(0) { } After push : array(1) { *[1]*=> string(6) "estado" } Does anyone here know why this happen? thanx Catia Crepaldi

« previous php.general (#148644) next »