#30009 [Bgs]: Using $this when not in object
| From: | onore at ua dot fm | Date: | Tue, 07 Sep 2004 12:33:55 +0000 |
| Subject: | #30009 [Bgs]: Using $this when not in object | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-65870@lists.php.net to get a copy of this message | ||
ID: 30009
User updated by: onore at ua dot fm
Reported By: onore at ua dot fm
Status: Bogus
Bug Type: Zend Engine 2 problem
Operating System: Windows XP
PHP Version: 5.0.1
New Comment:
This is code work at PHP 4.3.5;
Previous Comments:
------------------------------------------------------------------------
[2004-09-07 13:42:31] derick@php.net
Sorry, but your problem does not imply a bug in PHP itself. For a
list of more appropriate places to ask for help using PHP, please
visit http://www.php.net/support.php as this bug system
is not the
appropriate forum for asking support questions.
Thank you for your interest in PHP.
.
------------------------------------------------------------------------
[2004-09-07 13:35:44] onore at ua dot fm
line #14 if( ($this->Visible = (CheckS("3") == "success")) )
------------------------------------------------------------------------
[2004-09-07 13:34:17] onore at ua dot fm
Description:
------------
See reproduce code, error:
Fatal error: Using $this when not in object context in
C:\Apache\Apache2\htdocs\xxx\admin_start_events.php on line 14
Reproduce code:
---------------
function admin_start()
{
$admin_start_BeforeShow = true;
global $admin_start;
if( ($this->Visible = (CheckS("3") == "success")) )
{
$admin_start->Visible = true;
} else {
$admin_start->Visible = false;
}
return $admin_start;
}
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=30009&edit=1