|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2008-05-26 19:23 UTC] felipe@php.net
[2008-06-03 19:01 UTC] felipe@php.net
|
|||||||||||||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Mon Oct 27 19:00:02 2025 UTC |
Description: ------------ The value of $name produced by __callStatic() is lower cased but the $name produced by the regular __call() is unchanged. Please adjust __callStatic() so it doesn't change the case of $name. Reproduce code: --------------- class MethodTest { public static function __callStatic($name, $arguments) { echo "Calling static method '$name' " . implode(', ', $arguments). "\n"; } } MethodTest::runTest('in static context'); Expected result: ---------------- Calling static method 'runTest' in static context Actual result: -------------- Calling static method 'runtest' in static context