database driver: no more rows

php.internals

Lukas Smith

22 years ago
Hi, I would appreciate it if the database extensions would no longer return false when no rows are left in the result set but instead return null. The current way of returning false creates a level of ambiguity which can lead to serious issue in error handling. For example in mysql there is no way in knowing if you get false and then check for an error if the error was actually created by the fetch call or if the error was created by some other call to any of the mysql functions. Please see this bug for another example: http://bugs.php.net/bug.php?id=22328 Regards, Lukas Smith smith@backendmedia.com _______________________________ BackendMedia www.backendmedia.com berlin@backendmedia.com Linn Zwoch Smith GbR Pariser Str. 44 D-10707 Berlin Tel +49 30 83 22 50 00 Fax +49 30 83 22 50 07