|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2009-03-30 16:48 UTC] felipe@php.net
[2009-03-30 17:30 UTC] oorza2k5 at gmail dot com
[2009-03-30 17:51 UTC] felipe@php.net
|
|||||||||||||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Sun Nov 02 05:00:01 2025 UTC |
Description: ------------ Exact same issue (that was supposedly resolved) as #44425, but now with a MySQL 5.1 database. __call() doesn't do anything when extending PDO. This bug is clearly not fixed. Reproduce code: --------------- Reproduce code: --------------- <?php class test extends PDO { function __call($name, array $args) { echo "Called $name in ".__CLASS__.'<br>'; } function foo() { echo "Called foo in ".__CLASS__.'<br>'; } } $a = new test('mysql:dbname=test;host=localhost','user','pw'); $a->foo(); $a->bar(); ?> Expected result: ---------------- "Called foo in test Called bar in test" Actual result: -------------- Called foo in test<br> Fatal error: Call to undefined method test::bar() in test4.php on line 12