]> granicus.if.org Git - php/commitdiff
- Fixed bug pecl#9641 (Unable to add driver specific methods to PDOStatement)
authorFelipe Pena <felipe@php.net>
Thu, 9 Oct 2008 12:59:47 +0000 (12:59 +0000)
committerFelipe Pena <felipe@php.net>
Thu, 9 Oct 2008 12:59:47 +0000 (12:59 +0000)
ext/pdo/pdo_dbh.c

index ccd7c5842ead9f1ebb0e38c243b5e176acc9e76a..5dfe451d5f70825cba728e0c31de485d88b2c271 100755 (executable)
@@ -1188,8 +1188,7 @@ int pdo_hash_methods(pdo_dbh_t *dbh, int kind TSRMLS_DC)
        if (!dbh || !dbh->methods || !dbh->methods->get_driver_methods) {
                return 0;
        }
-       funcs = dbh->methods->get_driver_methods(dbh,
-                       PDO_DBH_DRIVER_METHOD_KIND_DBH TSRMLS_CC);
+       funcs = dbh->methods->get_driver_methods(dbh, kind TSRMLS_CC);
        if (!funcs) {
                return 0;
        }