Re: database driver: no more rows
| From: | Derick Rethans | Date: | Thu, 23 Oct 2003 07:07:59 +0000 |
| Subject: | Re: database driver: no more rows | ||
| References: | 1 2 3 | Groups: | php.internals |
| Request: | Send a blank email to internals+get-4938@lists.php.net to get a copy of this message | ||
On Wed, 22 Oct 2003, Ard Biesheuvel wrote:
> > Err .. I don't agree.
> > Null means no data
> > False means error.
>
> Maybe historically (PHP-wise) it does.
> But the way I see it, every fetch() can 'fail' for two reasons: an
> expected well-defined reason (eof), and an unexpected undefined reason
> (error). Labelling the well-defined reason as 'false' and the undefined
> reason as 'null' is really quite defendable.
I think so too, but I wonder how much this is going to break :)
Derick
--
"Interpreting what the GPL actually means is a job best left to those
that read the future by examining animal entrails."
-------------------------------------------------------------------------
Derick Rethans http://derickrethans.nl/
International PHP Magazine http://php-mag.net/
-------------------------------------------------------------------------