lenbell schreef:
When I create a "new object that is included in a page how long does
that object remain in memory?
Hi,
Simple: end of script.
When a PHP scripts ends, it destroys everything you created in it.
That includes objects you created and database connections, etc.
>
I can find no destroy object in the docs. In Delphi we would develop a
bitchin memory leak if we didn't "dispose" of objects
As far as I know PHP always behaves nicely when it comes to freeing
memory it used.
(At least on *nix/apache I use a lot. I had some problems with PHP5 on
IIS7 though, a dreaded 'worker thread stopped responding' popup that
seems to backtrack to PHP freeing the same memoryblocks twice. Not my
area of expertise, so I am only echo'ing what I read.)
>
Len
Regards,
Erwin Moller