johannes Tue Feb 17 14:42:26 2009 UTC Added files: (Branch: PHP_5_3) /php-src/ext/pdo_sqlite/tests bug46542.phpt
Modified files: /php-src NEWS /php-src/ext/pdo pdo_dbh.c Log: MFH: Fix #46542 Extending PDO class with a __call() function doesn't work as expected http://cvs.php.net/viewvc.cgi/php-src/NEWS?r1=1.2027.2.547.2.965.2.497&r2=1.2027.2.547.2.965.2.498&diff_format=u Index: php-src/NEWS diff -u php-src/NEWS:1.2027.2.547.2.965.2.497 php-src/NEWS:1.2027.2.547.2.965.2.498 --- php-src/NEWS:1.2027.2.547.2.965.2.497 Tue Feb 17 12:38:21 2009 +++ php-src/NEWS Tue Feb 17 14:42:25 2009 @@ -10,6 +10,8 @@ - Fixed bug #47085 (rename() returns true even if the file in PHAR does not exist). (Greg) - Fixed bug #47031 (Fix constants in DualIterator example). (Etienne) - Fixed bug #46897 (ob_flush() should fail to flush unerasable buffers). (David C.) +- Fixed bug #46542 (Extending PDO class with a __call() function doesn't work + as expected). (Johannes) - Fixed bug #46347 (parse_ini_file() doesn't support * in keys). (Nuno) - Fixed bug #46048 (SimpleXML top-level @attributes not part of iterator). (David C.) - Fixed bug #45432 (PDO: persistent connection leak). (Felipe) http://cvs.php.net/viewvc.cgi/php-src/ext/pdo/pdo_dbh.c?r1=1.82.2.31.2.17.2.21&r2=1.82.2.31.2.17.2.22&diff_format=u Index: php-src/ext/pdo/pdo_dbh.c diff -u php-src/ext/pdo/pdo_dbh.c:1.82.2.31.2.17.2.21 php-src/ext/pdo/pdo_dbh.c:1.82.2.31.2.17.2.22 --- php-src/ext/pdo/pdo_dbh.c:1.82.2.31.2.17.2.21 Fri Feb 13 12:55:38 2009 +++ php-src/ext/pdo/pdo_dbh.c Tue Feb 17 14:42:26 2009 @@ -18,7 +18,7 @@ +----------------------------------------------------------------------+ */ -/* $Id: pdo_dbh.c,v 1.82.2.31.2.17.2.21 2009/02/13 12:55:38 felipe Exp $ */ +/* $Id: pdo_dbh.c,v 1.82.2.31.2.17.2.22 2009/02/17 14:42:26 johannes Exp $ */ /* The PDO Database Handle Class */ @@ -1359,7 +1359,7 @@ out: if (!fbc) { if (std_object_handlers.get_method) { - fbc = std_object_handlers.get_method(object_pp, lc_method_name, method_len TSRMLS_CC); + fbc = std_object_handlers.get_method(object_pp, method_name, method_len TSRMLS_CC); } } http://cvs.php.net/viewvc.cgi/php-src/ext/pdo_sqlite/tests/bug46542.phpt?view=markup&rev=1.1 Index: php-src/ext/pdo_sqlite/tests/bug46542.phpt +++ php-src/ext/pdo_sqlite/tests/bug46542.phpt --TEST-- Bug #46542 Extending PDO class with a __call() function --SKIPIF-- <?php # vim:ft=php if (!extension_loaded('pdo_sqlite')) print 'skip not loaded'; ?> --FILE-- <?php class A extends PDO { function __call($m, $p) {print __CLASS__."::$m\n";} } $a = new A('sqlite:dummy.db'); $a->truc(); $a->TRUC(); ?> --EXPECT-- A::truc A::truc -- PHP CVS Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php