On March 22, 2002 00:27, Andrew Lindeman wrote:
> What do we do?
>
> On Thursday 21 March 2002 12:33 pm, Gabor Hojtsy wrote:
> > > > cnewbill Wed Mar 20 17:21:29 2002 EDT
> > > >
> > > > Modified files:
> > > > /phpdoc/en/functions mysql.xml
> > > > Log:
> > > > See Bug #16187 The second parameter can't be used cause a number
> >
> > cannot
> >
> > > > be used as an object property. ie row->0 is invalid while row->field
> >
> > is,
> >
> > > > so MYSQL_NUM and MYSQL_BOTH don't matter it should always be
> >
> > MYSQL_ASSOC.
> >
> > > Hold On!!! Look in the source!? The second param exists! That's why
> > > I asked which was wrong?!
> >
> > The other point is that number object properties could exist.
> >
> > var_dump((object) array(1, 2, 3, 4));
> >
> > hm...
> >
> > The same for
> >
> > var_dump((object) array("+=|__-=.:'[]" => 4));
But this is valid (if somewhat nasty):
$foo = 0;
$obj->$foo = 10;
echo $obj->$foo;
--zak