ID:               25391
 Updated by:       [EMAIL PROTECTED]
 Reported By:      skissane at ics dot mq dot edu dot au
-Status:           Open
+Status:           Wont fix
 Bug Type:         Scripting Engine problem
 Operating System: Linux
 PHP Version:      4.3.3
 New Comment:

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)


Previous Comments:
------------------------------------------------------------------------

[2003-09-06 01:46:08] 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



------------------------------------------------------------------------


-- 
Edit this bug report at http://bugs.php.net/?id=25391&edit=1

Reply via email to