mirror of
https://github.com/php/php-src.git
synced 2024-09-24 19:37:26 +00:00
971f8b0881
Added a more configurable error reporting interface to DB. Also added some more tests, and moved the DB tests to pear/DB/tests. #Usage example that prints and exits on every error: #$dbh = DB::connect($dsn); #$dbh->setErrorHandling(PEAR_ERROR_DIE); # #Example with plain callback function: #$dbh->setErrorHandling(PEAR_ERROR_CALLBACK, "errorHandler"); # #Example with object callback function: #$dbh->setErrorHandling(PEAR_ERROR_CALLBACK, array($obj, "errorHandler")); # #Handler functions/methods are called with the error object as a parameter. # |
||
---|---|---|
.. | ||
pear1.phpt | ||
pear_error2.phpt | ||
pear_error_callback.phpt | ||
pear_error.phpt | ||
PEAR_Error.r | ||
PEAR_Error.t | ||
PEAR.r | ||
PEAR.t | ||
php.ini |