#25391 [Opn->WFx]: Problem with method call - please report this bug

From: Date: Sun, 07 Sep 2003 15:35:59 +0000
Subject: #25391 [Opn->WFx]: Problem with method call - please report this bug
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-47187@lists.php.net to get a copy of this message
ID: 25391 Updated by: sniper@php.net 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

« previous php.bugs (#47187) next »