ID: 30976
User updated by: php at pollensoft dot com
Reported By: php at pollensoft dot com
Status: Open
Bug Type: Compile Warning
Operating System: Win2k
PHP Version: 4.3.9
New Comment:
sorry, actual result should say:
Warning: Problem with method call - please report this bug in <path to
file> on line <line number>
constructor
staticMethod
Previous Comments:
------------------------------------------------------------------------
[2004-12-03 15:56:24] php at pollensoft dot com
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 this bug report at http://bugs.php.net/?id=30976&edit=1