|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2003-09-07 11:35 UTC] sniper@php.net
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Thu Oct 30 12:00:01 2025 UTC |
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