Re: [PHP4BETA] More on losing array values...

From: Date: Sat, 13 Nov 1999 20:00:46 +0000
Subject: Re: [PHP4BETA] More on losing array values...
References: 1  Groups: php.version4 
Request: Send a blank email to php-version4+get-6197@lists.php.net to get a copy of this message
Well, I can't say "only", but it is the only one that _I_ see it in. I tried the same function with mysql, and they worked fine... --Joey Smith On Sat, 13 Nov 1999, Andrei Zmievski wrote: > On Sat, 13 Nov 1999, Joey wrote: > > 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. > > This only happens with sybase_fetch_array? > > -Andrei > * George Orwell was an optimist. * >

« previous php.version4 (#6197) next »