php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #25391 Problem with method call - please report this bug
Submitted: 2003-09-06 01:46 UTC Modified: 2003-09-07 11:35 UTC
From: skissane at ics dot mq dot edu dot au Assigned:
Status: Wont fix Package: Scripting Engine problem
PHP Version: 4.3.3 OS: Linux
Private report: No CVE-ID: None
Have you experienced this issue?
Rate the importance of this bug to you:

 [2003-09-06 01:46 UTC] skissane at ics dot mq dot edu dot au
Description:
------------
Getting error message telling me to report this bug, so I am.

Confirmed only happens with 4.3.3; 5CVS-2003-09-06 gives the more sensible error message "Fatal error: Using $this when not in object context" on the previous line, indicating this is a ZE1 problem.

Reproduce code:
---------------
<?
class foo {
    function bar() {
    }
}

$this->x = "y";
echo foo::bar();
?>


Expected result:
----------------
No message instructing me to file a bug report.
Possibly, an error about using $this outside a class, like PHP5 gives.

Actual result:
--------------
Warning: Problem with method call - please report this bug on line 8


Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2003-09-07 11:35 UTC] sniper@php.net
Works with PHP5 -> won't fix in PHP4.
(basically any OO bugs in PHP4 gets the same treatment, if it doesn't work in PHP5, report it, otherwise, forget about it)
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Fri Apr 19 10:01:28 2024 UTC