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
View Add Comment Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
You can add a comment by following this link or if you reported this bug, you can edit this bug over here.
(description)
Block user comment
Status: Assign to:
Package:
Bug Type:
Summary:
From: skissane at ics dot mq dot edu dot au
New email:
PHP Version: OS:

 

 [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-2022 The PHP Group
All rights reserved.
Last updated: Mon Jul 04 03:03:50 2022 UTC