RE: [PHP-DEV] database driver: no more rows
| From: | Andi Gutmans | Date: | Wed, 22 Oct 2003 22:02:35 +0000 |
| Subject: | RE: [PHP-DEV] database driver: no more rows | ||
| References: | 1 | Groups: | php.internals |
| Request: | Send a blank email to internals+get-4923@lists.php.net to get a copy of this message | ||
At 12:00 AM 10/23/2003 +0200, Lukas Smith wrote:
From: Andi Gutmans [mailto:andi@zend.com] Sent: Wednesday, October 22, 2003 11:58 PM At 11:49 PM 10/22/2003 +0200, Ard Biesheuvel wrote: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. AndiThis 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?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.Err .. I don't agree. Null means no data False means error.