|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2008-11-11 17:40 UTC] johannes@php.net
[2009-02-17 14:45 UTC] johannes@php.net
[2011-11-16 13:17 UTC] felipe@php.net
-Package: PDO related
+Package: Documentation problem
[2013-10-26 09:37 UTC] krakjoe@php.net
[2013-10-26 09:38 UTC] krakjoe@php.net
-Status: Open
+Status: Closed
-Assigned To:
+Assigned To: krakjoe
[2013-10-26 09:38 UTC] krakjoe@php.net
|
|||||||||||||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Thu Oct 30 22:00:01 2025 UTC |
Description: ------------ A user-defined class extending PDO will have troubles with __call(): the method name passed to __call() is always lowercase. As far as I can tell, it only happens when extending PDO. As a side-note, I have seen several issues with __call() and PDO.. is there anything special about PDO which could explain that ? Reproduce code: --------------- class A extends PDO { function __call($m, $p) {print __CLASS__."::$m\n";} } class B extends XSLTProcessor { function __call($m, $p) {print __CLASS__."::$m\n";} } $a = new A('sqlite:dummy.db'); $a->truc(); $a->TRUC(); $b = new B(); $b->truc(); $b->TRUC(); Expected result: ---------------- A::truc A::TRUC <----------- B::truc B::TRUC Actual result: -------------- A::truc A::truc <----------- B::truc B::TRUC