#30009 [Opn]: Using $this when not in object

From: Date: Tue, 07 Sep 2004 11:35:45 +0000
Subject: #30009 [Opn]: Using $this when not in object
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-65867@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: Open Bug Type: Zend Engine 2 problem Operating System: Windows XP PHP Version: 5.0.1 New Comment: line #14 if( ($this->Visible = (CheckS("3") == "success")) ) Previous Comments: ------------------------------------------------------------------------ [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

« previous php.bugs (#65867) next »