mirror of
https://github.com/php/php-src.git
synced 2024-11-30 21:35:36 +08: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. # |
||
---|---|---|
.. | ||
PEAR | ||
tests | ||
DB.php | ||
HTTP.php | ||
install-pear.txt | ||
Makefile.in | ||
package.dtd | ||
pear.in | ||
pear.m4 | ||
PEAR.php.in | ||
php-config.in | ||
phpextdist | ||
phpize.in | ||
README | ||
run-tests.in | ||
TODO |
PEAR - PHP Extension and Application Repository =============================================== Dedicated to Malin Bakken, born 1999-11-21 WHAT IS PEAR? PEAR is a code repository for PHP extensions and PHP library code similar to TeX's CTAN and Perl's CPAN. The intention behind PEAR is to provide a means for library code authors to organize their code in a defined way shared by other developers, and to give the PHP community a single source for such code. ADMINISTRATION This section will describe the rules for how files are structured and how functions and classes should be named. TOOLS This section will describe the tools provided to PEAR users. CODING RULES AND GUIDELINES * All PHP code must use <?php ?>. This is the only really portable tag. * Before adding a new top-level directory ("DB" is one), discuss your intentions on php-pear@lists.php.net.