> From: Ard Biesheuvel [mailto:[EMAIL PROTECTED]
> Sent: Wednesday, October 22, 2003 7:56 PM
> To: [EMAIL PROTECTED]
> Subject: Re: [PHP-DEV] database driver: no more rows
> 
> >>I wouldn't mind such a change myself, however what about all the
> >>installations
> >>where people do while (*fetch_row() !== false) ?
> 
> Wouldn't it be a lot easier to do it the other way around ?
> I mean, the semantics of returning false when a fetch cannot be executed
> because aren't any rows left is perfectly clear, and returning NULL when
> the result cannot be determined (because of an error) is also better
> than returning any other value (like 'false').
> 
> This would also be easier to carry out while maintaining BC.

Err .. I don't agree.
Null means no data
False means error.

Regards,
Lukas

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

Reply via email to