From: skissane at ics dot mq dot edu dot au
Operating system: Linux
PHP version: 4.3.3
PHP Bug Type: Scripting Engine problem
Bug description: Problem with method call - please report this bug
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 bug report at http://bugs.php.net/?id=25391&edit=1
--
Try a CVS snapshot (php4): http://bugs.php.net/fix.php?id=25391&r=trysnapshot4
Try a CVS snapshot (php5): http://bugs.php.net/fix.php?id=25391&r=trysnapshot5
Fixed in CVS: http://bugs.php.net/fix.php?id=25391&r=fixedcvs
Fixed in release: http://bugs.php.net/fix.php?id=25391&r=alreadyfixed
Need backtrace: http://bugs.php.net/fix.php?id=25391&r=needtrace
Try newer version: http://bugs.php.net/fix.php?id=25391&r=oldversion
Not developer issue: http://bugs.php.net/fix.php?id=25391&r=support
Expected behavior: http://bugs.php.net/fix.php?id=25391&r=notwrong
Not enough info: http://bugs.php.net/fix.php?id=25391&r=notenoughinfo
Submitted twice: http://bugs.php.net/fix.php?id=25391&r=submittedtwice
register_globals: http://bugs.php.net/fix.php?id=25391&r=globals
PHP 3 support discontinued: http://bugs.php.net/fix.php?id=25391&r=php3
Daylight Savings: http://bugs.php.net/fix.php?id=25391&r=dst
IIS Stability: http://bugs.php.net/fix.php?id=25391&r=isapi
Install GNU Sed: http://bugs.php.net/fix.php?id=25391&r=gnused