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

index 699855b81e340eab3d7ba7a32c421b3734a3ad5e..535d0a5f8f238bff9406d4b2b08cda875576b0f1 100755 (executable)
@@ -1210,8 +1210,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;
        }