Re: [PHP4BETA] More on losing array values...
| From: | Joey | Date: | Sat, 13 Nov 1999 20:02:41 +0000 |
| Subject: | Re: [PHP4BETA] More on losing array values... | ||
| References: | 1 | Groups: | php.version4 |
| Request: | Send a blank email to php-version4+get-6196@lists.php.net to get a copy of this message | ||
BTW, this is in sybase_ct. I will check dblib today...
--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. *
>