MDB2 debug_handler

From: Date: Tue, 03 Jul 2012 07:43:18 +0000
Subject: MDB2 debug_handler
Groups: php.pear.general 
Request: Send a blank email to pear-general+get-31587@lists.php.net to get a copy of this message
Hi, I'd like to logging the query errors with MDB2's debug_handler function. But if I know well debug handler show every query not only the errors. Here's my simple code: $options = array(
    'debug'          => 1,
    'log_line_break' => '\n\t',
    'debug_handler'  => 'mdb2Debug'
); $mdb2 =& MDB2::connect($dsn, $options); function mdb2Debug(&$db, $scope, $message, $is_manip) {
    var_dump($message);
} Inside my function I'd like to catch only the errors. How can I do that? Thanks a lot Zoli

« previous php.pear.general (#31587) next »