|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
Patchesbug55311.phpt (last revision 2011-07-29 03:31 UTC by laruence@php.net)bug55311.patch (last revision 2011-07-29 03:29 UTC by laruence@php.net) Pull RequestsHistoryAllCommentsChangesGit/SVN commits
[2011-07-29 03:28 UTC] laruence@php.net
-Status: Open
+Status: Verified
[2011-07-29 03:28 UTC] laruence@php.net
[2011-07-29 03:29 UTC] laruence@php.net
[2011-07-29 03:31 UTC] laruence@php.net
[2011-07-29 08:33 UTC] cataphract@php.net
-Status: Verified
+Status: Bogus
[2011-07-29 08:33 UTC] cataphract@php.net
[2011-07-29 15:56 UTC] steve at twitpic dot com
[2011-07-30 19:10 UTC] cataphract@php.net
[2012-06-24 19:20 UTC] info at dillenm dot nl
|
|||||||||||||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Sun Nov 02 00:00:01 2025 UTC |
Description: ------------ When calling a non-existant static method within an objects method, php invokes _call instead of __callStatic. When calling the same non-existant static method outside of the object, php correctly invokes __callStatic. It appears that this broke in php5.3.5 and is still broken in 5.3.6. It works as expected in 5.3.3, however. Test script: --------------- class Test { public function __call($method, $args) { echo "call\n"; } public static function __callStatic($method, $args) { echo "callStatic\n"; } public function testing() { Test::fakeFunction(); } } $t = new Test; $t->testing(); Test::fakeFunction(); Expected result: ---------------- // expected output callStatic callStatic Actual result: -------------- // output call callStatic