[prev in list] [next in list] [prev in thread] [next in thread] 

List:       pear-doc
Subject:    [PEAR-DOC] [PEAR-BUG] Bug #20970 [NEW]: setErrorHandling undefined
From:       "joel at inflatableoffice dot com"<pear-doc () lists ! php ! net>
Date:       2015-10-21 10:58:40
Message-ID: bug-20970 () pear ! php ! net
[Download RAW message or body]

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
-- 


-- 
PEAR Documentation List Mailing List (http://pear.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic