Re: foreach and destroying variables for memory saving

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Tim | iHostNZ wrote:

> Somewhere i also read that one can save a lot of memory by destroying
> variables. Is that done with unset, setting it to null or something
> similar? 

unset()

> So, i take there is no garbage collection in php? I've never 
> actually looked at the c source code of php. Maybe its time to
> actually do that. But it might be easier if someone can answer this
> from the top of their head.

There is no real need - most PHP code runs in apache with each request
being separately initated and terminated.  There's no underlying
runtime manager as such. 


/Per Jessen, Zürich


--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux