Re: [SMARTY] References

From: Date: Mon, 16 Dec 2002 22:12:10 +0000
Subject: Re: [SMARTY] References
References: 1 2 3  Groups: php.smarty.general 
Request: Send a blank email to php-smarty-general+get-6846@lists.php.net to get a copy of this message
clear_assign() does an unset() on the assigned variable. So for normal (copied) assigned variables, they are removed from memory. For assigned by ref, they are only unreferenced. On Mon, 2002-12-16 at 15:47, Hinrich Donner wrote: > > On Mon, 2002-12-16 at 15:16, Hinrich Donner wrote: > > > It should be. Smarty will do an unset() on the assigned template > > variable. I think if you do an unset() on a reference it doesn't harm > > the actual contents. > > Hm, but you do an unset on normal "assign" vars? Or they remain in memory? > > I'm asking because I'm devolping a system using Smarty. In this I call a > template from the main PHP file. the template call again plugins. the > plugins uses parts of the core and other modules again and displaying the > results. Thie can be move deeper and deeper. Each plugin uses assign and > clear_assign on the referenced object "$smarty". So if you do not clear up > the memory on "clear_assign" it might be a problem? > > Hinrich -- Monte Ohrt <monte@ispi.net>

« previous php.smarty.general (#6846) next »