|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2007-10-20 15:53 UTC] johannes@php.net
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Sat Nov 08 01:00:01 2025 UTC |
Description: ------------ The first argument passed to __callStatic() - the method name - is always converted lowercase. In case of __call() the method name is supplied as-is. Reproduce code: --------------- <?php class MyInstance { public function __call($method, $params) { echo $method . "\n"; } } class MyStatic { public static function __callStatic($method, $params) { echo $method . "\n"; } } $instance = new MyInstance(); $instance->fooBar(); // fooBar MyStatic::fooBar(); // foobar Expected result: ---------------- fooBar fooBar Actual result: -------------- fooBar foobar