Re: database driver: no more rows

From: Date: Wed, 22 Oct 2003 17:55:52 +0000
Subject: Re: database driver: no more rows
References: 1 2  Groups: php.internals 
Request: Send a blank email to internals+get-4916@lists.php.net to get a copy of this message
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. -- Ard

« previous php.internals (#4916) next »