| 
        php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login | 
 PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits             
             [2004-12-03 15:57 UTC] php at pollensoft dot com
  [2004-12-03 16:05 UTC] tony2001@php.net
  [2004-12-11 01:00 UTC] php-bugs at lists dot php dot net
  | 
    |||||||||||||||||||||||||||||||||||||
            
                 
                Copyright © 2001-2025 The PHP GroupAll rights reserved.  | 
        Last updated: Tue Nov 04 04:00:01 2025 UTC | 
Description: ------------ Calling a static method, ie: ClassName::staticMethod(); Generates the following error: Warning: Problem with method call - please report this bug in <path to file> on line <line number> The output is correct, the method seems to function normally, but the warning is generated. This happens with any static method call. I think the warning just needs to be removed unless there's something really low level that's going on that not affecting code compilation or runtime. Reproduce code: --------------- <? class tmp { function tmp() { echo "constructor"; } function staticMethod() { echo "staticMethod"; } } $t = new tmp(); tmp::staticMethod(); ?> Expected result: ---------------- constructor staticMethod Actual result: -------------- constructor staticMethod