]> granicus.if.org Git - php/commitdiff
- Fixed bug #43663 (Extending PDO class with a __call() function doesn't work).
authorDavid Soria Parra <dsp@php.net>
Sun, 30 Dec 2007 17:43:08 +0000 (17:43 +0000)
committerDavid Soria Parra <dsp@php.net>
Sun, 30 Dec 2007 17:43:08 +0000 (17:43 +0000)
ext/pdo/pdo_dbh.c

index 18f30dc35c169738604f4ff4d2013ad144e1eba4..9ee8ded27bb265654adce83ca237e300173e8fe2 100755 (executable)
@@ -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;