Re: [PHP-PEAR] The PEAR $db->fetchRow Blues (ref: DB_mysql...
[email protected] (Chuck Hagenbuch)
| Newsgroups | php.pear |
|---|---|
| Message-ID | <[email protected]> |
Quoting "Stig S. Bakken" <[email protected]>: > That is a defense, but after all, reaching the end of a result set is a > normal event. It's supposed to happen. The scope of PEAR errors today > is limited to events that should not occur (imagine what will happen if > you're running with a "print and die" default error handler). Yeah, I know - this makes sense to me, and I've more or less resigned myself to having to do the two checks. If it really bothers me, I'll add DB::isResult() at some point. > Anyway, I'll add some regression tests for this behaviour so we can > verify that it is consistent in the different backends. Great. -chuck -- Charles Hagenbuch, <[email protected]> "We have no fuel on board, plus or minus 8 kilograms." -A NASA scientist