|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2008-10-24 18:01 UTC] kalle@php.net
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Sun Dec 14 19:00:01 2025 UTC |
Description: ------------ In pdo_hash_methods(), a constant for DBH is passed to get_driver_methods(). This prevents new methods being added to PDOStatement. Reproduce code: --------------- Possible patch: --- c:/tmp/pdo_dbh.c.orig Sat Dec 16 18:58:22 2006 +++ c:/tmp/pdo_dbh.c Sat Dec 16 18:57:45 2006 @@ -1169,8 +1169,7 @@ 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; }