php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #30976 Static method call, warning generated, correct output
Submitted: 2004-12-03 15:56 UTC Modified: 2004-12-11 01:00 UTC
Votes:1
Avg. Score:4.0 ± 0.0
Reproduced:1 of 1 (100.0%)
Same Version:1 (100.0%)
Same OS:1 (100.0%)
From: php at pollensoft dot com Assigned:
Status: No Feedback Package: Scripting Engine problem
PHP Version: 4.3.9 OS: Win2k
Private report: No CVE-ID: None
Have you experienced this issue?
Rate the importance of this bug to you:

 [2004-12-03 15:56 UTC] 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

Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2004-12-03 15:57 UTC] php at pollensoft dot com
sorry, actual result should say:

Warning: Problem with method call - please report this bug in <path to
file> on line <line number>

constructor
staticMethod
 [2004-12-11 01:00 UTC] php-bugs at lists dot php dot net
No feedback was provided for this bug for over a week, so it is
being suspended automatically. If you are able to provide the
information that was originally requested, please do so and change
the status of the bug back to "Open".
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Mon May 06 18:01:35 2024 UTC