Bug #20970 [NEW]: setErrorHandling undefined

From: Date: Wed, 21 Oct 2015 10:58:08 +0000
Subject: Bug #20970 [NEW]: setErrorHandling undefined
Groups: php.pear.doc php.pear.doc 
Request: Send a blank email to pear-doc+get-12245@lists.php.net to get a copy of this message
From: #9da425ef09054be5dc0 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 https://pear.php.net/bugs/bug.php?id=20970&edit=1 --

« previous php.pear.doc (#12245) next »