Re: [PHP] Memory usage of variables in Functions/Methods

2003-10-07 Thread Gerard Samuel
Robert Cummings wrote: On Tue, 2003-10-07 at 22:44, Gerard Samuel wrote: The question is what happens to local variables when the code leaves a function/method as far as memory is concerned. Does it *silently* unset (free the allocated memory) the local variables, or does it make sense to har

Re: [PHP] Memory usage of variables in Functions/Methods

2003-10-07 Thread Robert Cummings
On Tue, 2003-10-07 at 22:44, Gerard Samuel wrote: > The question is what happens to local variables when the code leaves a > function/method > as far as memory is concerned. > Does it *silently* unset (free the allocated memory) the local > variables, or does it make sense to hardcode > unset() t

[PHP] Memory usage of variables in Functions/Methods

2003-10-07 Thread Gerard Samuel
The question is what happens to local variables when the code leaves a function/method as far as memory is concerned. Does it *silently* unset (free the allocated memory) the local variables, or does it make sense to hardcode unset() to garbage these local variables? Thanks function foo() { $