From: David Soria Parra Date: Sun, 30 Dec 2007 17:43:08 +0000 (+0000) Subject: - Fixed bug #43663 (Extending PDO class with a __call() function doesn't work). X-Git-Tag: RELEASE_2_0_0a1~1072 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=e33ce442148e2c18b1198d697157639b6acf381e;p=php - Fixed bug #43663 (Extending PDO class with a __call() function doesn't work). --- diff --git a/ext/pdo/pdo_dbh.c b/ext/pdo/pdo_dbh.c index 18f30dc35c..9ee8ded27b 100755 --- a/ext/pdo/pdo_dbh.c +++ b/ext/pdo/pdo_dbh.c @@ -1254,12 +1254,17 @@ static union _zend_function *dbh_method_get( if (zend_u_hash_find(dbh->cls_methods[PDO_DBH_DRIVER_METHOD_KIND_DBH], ztype, lc_method_name, method_len+1, (void**)&fbc) == FAILURE) { - fbc = NULL; + if (std_object_handlers.get_method) { + fbc = std_object_handlers.get_method(object_pp, lc_method_name, method_len TSRMLS_CC); + } + if (!fbc) { + fbc = NULL; + } goto out; } /* got it */ } - + out: pdo_zstr_efree(lc_method_name); return fbc;