database driver: no more rows

From: Date: Wed, 22 Oct 2003 17:06:02 +0000
Subject: database driver: no more rows
Groups: php.internals 
Request: Send a blank email to internals+get-4913@lists.php.net to get a copy of this message
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

« previous php.internals (#4913) next »