[PEAR-BUG] Bug #20970 [NEW]: setErrorHandling undefined
[email protected] ("joel at inflatableoffice dot com") Wed, 21 Oct 2015 11:58:40 +0100 (BST)
| Newsgroups | php.pear.doc,php.pear.doc |
|---|---|
| Message-ID | <[email protected]> |
From: jaemmer
Operating system: CentOS 6.7
Package version:
PHP version: 5.5.30
Package: Documentation
Bug Type: Bug
Bug description: setErrorHandling undefined
Description:
------------
I get a fatal error, undefined function on the last line of the test
code below which previously worked before upgrading to the latest
version.
Test script:
---------------
$db_object = MDB2::singleton($datasource, TRUE);
$db_object->loadModule('Extended');
$db_object->setFetchMode(MDB2_FETCHMODE_ASSOC);
$db_object->setOption('portability', MDB2_PORTABILITY_ALL ^
MDB2_PORTABILITY_FIX_CASE ^ MDB2_PORTABILITY_EMPTY_TO_NULL);
$db_object->setCharset('utf8');
//after upgrading to php 5.5.30-1 / pear 1.10.1 would get fatal error
$db_object->setErrorHandling(PEAR_ERROR_CALLBACK, 'db_error');
Expected result:
----------------
When a db sql error happens it should call back my db_error
function.
Actual result:
--------------
Fatal error: Call to undefined function:
MDB2_Driver_mysql::setErrorHandling(). in
/usr/share/pear/MDB2.php on line 1936
--
Edit bug report at http://pear.php.net/bugs/bug.php?id=20970&edit=1
--