Hmmm, looks like the MySQL module was changed to add NULL elements to the
array. It even looks as if you changed it :)
I intentionally removed the code that populated return values with NULL's,
to avoid inconsistencies. People should use the mysql_fetch_field() to
check which fields there are.
I'd like to change it back...
Zeev
At 16:53 3/5/2001, Andrei Zmievski wrote:
>On Thu, 03 May 2001, Andi Gutmans wrote:
> > Yeah but I'm afraid it'll make scripts be written on behavior which
> > shouldn't be counted on.
> > Maybe in future versions of Zend $array['foo'] won't be defined. There are
> > certain situations where I think it was impossible to not define it so it
> > was defined with NULL meaning it's not defined.
>
>Um, but some db extensions return NULL values as part of the array, so
>if column 'foo' is NULL in the db, you'd want the result array to have
>NULL under key 'foo' - it just won't do to have that column be missing.
>
>-Andrei
>* We reason deeply, when we forcibly feel. *
--
Zeev Suraski <[EMAIL PROTECTED]>
CTO & co-founder, Zend Technologies Ltd. http://www.zend.com/
--
PHP Development Mailing List <http://www.php.net/>
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]