At 12:00 AM 10/23/2003 +0200, Lukas Smith wrote:
> From: Andi Gutmans [mailto:[EMAIL PROTECTED]
> Sent: Wednesday, October 22, 2003 11:58 PM

> At 11:49 PM 10/22/2003 +0200, 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.
>
>
> This isn't something I'd like to see changed. I actually think there are
> probably lots of people who do !== false and we could screw up a lot of
> scripts. I see the advantage of being able to tell the difference but I
> think it's not big enough to change it now.

Not even in php5?

Nope. It should be as easy as possible for people to migrate from PHP 4 to PHP 5, and this change isn't one of those blow up in your face things. It'll probably add all sorts of subtle bugs which are hard to find to existing applications.
Anyway, I am hoping for no more major changes after I get beta 2 out of the door next week except for bug fixes and adapting extensions to ZE2.


Andi

--
PHP Internals - PHP Runtime Development Mailing List
To unsubscribe, visit: http://www.php.net/unsub.php



Reply via email to