Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Cannot re-assign $this


Guest

Recommended Posts

Posted

Hi,

 

Anyone know how to solve this issue?

 

 

Fatal error: Cannot re-assign $this in /home/xxxxxx/public_html/admin/includes/classes/upload.php on line 31

 

This is line 30-33 in that file.

 

// self destruct

$this = null;

 

return false;

 

Thanks!

Posted
Hi,

 

Anyone know how to solve this issue?

Fatal error: Cannot re-assign $this in /home/xxxxxx/public_html/admin/includes/classes/upload.php on line 31

 

This is line 30-33 in that file.

 

// self destruct

$this = null;

 

return false;

 

Thanks!

 

 

Anyone?

Posted
Anyone?

 

In php there is really no need to derefernce $this...the "garbage collector/memory manager" will release the objects ($this) memory when it needs to. This is why PHP "objects" do not contain "destructors".

 

Basically, $this is the parent object of your application, and trying to dereference it while your app is running is not allowed.

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...