|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2010-08-28 22:38 UTC] giovanni at giacobbi dot net
[2010-08-31 01:05 UTC] felipe@php.net
[2010-08-31 01:06 UTC] felipe@php.net
[2010-08-31 06:06 UTC] michael at wakeless dot net
[2010-08-31 14:48 UTC] giovanni at giacobbi dot net
[2011-01-11 17:52 UTC] ghosh at q-one dot com
[2011-01-28 21:52 UTC] felipe@php.net
-Status: Open
+Status: Closed
-Assigned To:
+Assigned To: felipe
[2011-01-28 21:52 UTC] felipe@php.net
|
|||||||||||||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Wed Oct 29 13:00:01 2025 UTC |
Description: ------------ When using the __call and __callStatic functionality on a parent class calls to parent::method() will always use __callStatic rather than the __call. This breaks backwards compatibility in a number of cases. Test script: --------------- class A { function __call($method, $args) { if($method == "Test") { echo "Success."; } } function __callStatic($method, $args) { echo "Failure."; } } class B extends A { function Test() { echo "Test called."; parent::Test(); } } $test = new B; $test->Test(); Expected result: ---------------- //Expected output: Test called.Success. Actual result: -------------- //Actual output: Test called.Failure