summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDavid Soria Parra <dsp@php.net>2007-12-30 17:43:08 +0000
committerDavid Soria Parra <dsp@php.net>2007-12-30 17:43:08 +0000
commite33ce442148e2c18b1198d697157639b6acf381e (patch)
treed278dae77bf7f087b49d6641ff9670648782451d
parentee60f973de10c447bd7cabbc0083eeef71d49e72 (diff)
downloadphp-git-e33ce442148e2c18b1198d697157639b6acf381e.tar.gz
- Fixed bug #43663 (Extending PDO class with a __call() function doesn't work).
-rwxr-xr-xext/pdo/pdo_dbh.c9
1 files changed, 7 insertions, 2 deletions
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;