dsp             Sun Dec 30 17:43:09 2007 UTC

  Modified files:              
    /php-src/ext/pdo    pdo_dbh.c 
  Log:
  - Fixed bug #43663 (Extending PDO class with a __call() function doesn't 
work).
  
  
http://cvs.php.net/viewvc.cgi/php-src/ext/pdo/pdo_dbh.c?r1=1.143&r2=1.144&diff_format=u
Index: php-src/ext/pdo/pdo_dbh.c
diff -u php-src/ext/pdo/pdo_dbh.c:1.143 php-src/ext/pdo/pdo_dbh.c:1.144
--- php-src/ext/pdo/pdo_dbh.c:1.143     Sun Oct  7 05:15:04 2007
+++ php-src/ext/pdo/pdo_dbh.c   Sun Dec 30 17:43:08 2007
@@ -18,7 +18,7 @@
   +----------------------------------------------------------------------+
 */
 
-/* $Id: pdo_dbh.c,v 1.143 2007/10/07 05:15:04 davidw Exp $ */
+/* $Id: pdo_dbh.c,v 1.144 2007/12/30 17:43:08 dsp Exp $ */
 
 /* The PDO Database Handle Class */
 
@@ -1254,12 +1254,17 @@
 
                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;

-- 
PHP CVS Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to