From:             php at pollensoft dot com
Operating system: Win2k
PHP version:      4.3.9
PHP Bug Type:     Compile Warning
Bug description:  Static method call, warning generated, correct output

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

-- 
Edit bug report at http://bugs.php.net/?id=30976&edit=1
-- 
Try a CVS snapshot (php4):   http://bugs.php.net/fix.php?id=30976&r=trysnapshot4
Try a CVS snapshot (php5.0): 
http://bugs.php.net/fix.php?id=30976&r=trysnapshot50
Try a CVS snapshot (php5.1): 
http://bugs.php.net/fix.php?id=30976&r=trysnapshot51
Fixed in CVS:                http://bugs.php.net/fix.php?id=30976&r=fixedcvs
Fixed in release:            http://bugs.php.net/fix.php?id=30976&r=alreadyfixed
Need backtrace:              http://bugs.php.net/fix.php?id=30976&r=needtrace
Need Reproduce Script:       http://bugs.php.net/fix.php?id=30976&r=needscript
Try newer version:           http://bugs.php.net/fix.php?id=30976&r=oldversion
Not developer issue:         http://bugs.php.net/fix.php?id=30976&r=support
Expected behavior:           http://bugs.php.net/fix.php?id=30976&r=notwrong
Not enough info:             
http://bugs.php.net/fix.php?id=30976&r=notenoughinfo
Submitted twice:             
http://bugs.php.net/fix.php?id=30976&r=submittedtwice
register_globals:            http://bugs.php.net/fix.php?id=30976&r=globals
PHP 3 support discontinued:  http://bugs.php.net/fix.php?id=30976&r=php3
Daylight Savings:            http://bugs.php.net/fix.php?id=30976&r=dst
IIS Stability:               http://bugs.php.net/fix.php?id=30976&r=isapi
Install GNU Sed:             http://bugs.php.net/fix.php?id=30976&r=gnused
Floating point limitations:  http://bugs.php.net/fix.php?id=30976&r=float
MySQL Configuration Error:   http://bugs.php.net/fix.php?id=30976&r=mysqlcfg

Reply via email to