Re: DB: do I need to check if (DB::isError($res)) if I setErrorHandling() to callback function?
| From: | Massimiliano Arione | Date: | Tue, 23 Aug 2005 07:18:52 +0000 |
| Subject: | Re: DB: do I need to check if (DB::isError($res)) if I setErrorHandling() to callback function? | ||
| References: | 1 2 | Groups: | php.pear.general |
| Request: | Send a blank email to pear-general+get-20532@lists.php.net to get a copy of this message | ||
Justin Patrin wrote:
If all you're doing is calling die() then, no you don't need both. One or the other should be fine.And what if not? I use the callback without die() and don't use error check. I didn't have problem until now. Am I wrong? -- Massimiliano Arione :: http://garak.it :: * No Word * http://gnu.org/philosophy/no-word-attachments.html * No HTML * http://efn.no/html-bad.html