More on losing array values...

From: Date: Sat, 13 Nov 1999 13:24:27 +0000
Subject: More on losing array values...
Groups: php.version4 
Request: Send a blank email to php-version4+get-6174@lists.php.net to get a copy of this message
I have tracked the bug back as far as 4 B2. ./configure --with-apache=/usr/src/apache \ --with-zlib --with-mm \ --with-sybase-ct=/usr/local/sybase \ --enable-trans-sid --with-db2 --enable-dmalloc \ --enable-versioning \ --with-gd --with-ttf --with-imap \ --with-ftp --with-mysql --with-xml Again, a brief desc. of the bug: $i = 0; while($a = sybase_fetch_array(any_query)) { $r[$i] = $a[0]; print "Inside loop: $r[$i]"; $i++; } var_dump($r); var_dump displays: array(17) { int(0) i:0 int(1) i:0 where "i" _SHOULD_ be that array val. I also tried using list()=each() to see if the vals were there, etc. The vals are gone, but the keys are intact. --Joey Smith

« previous php.version4 (#6174) next »