Posted 15 March 2006 - 06:54 AM
Is there object persistence in PHP 5?
I ask because it seems that with all the associated memory overhead with OOP, I am wondering if there is another reason for PHP to go OO besides maintainability.
Posted 16 March 2006 - 02:31 AM
I can't see this happening because once the script has executed, control is turned back over to the web server, and the PHP interpreter is cleaning up after the execution thread -- unless it doesn't.
Posted 16 March 2006 - 02:48 AM
I can't see this happening
You are correct.
You can create semi persistant variables using sessions and the like, but once the script ends, just like you would expect, all vars and objects, and usually, db connections are lost.
The only exception to this would be persistant db connections, which remain for a period of time.
0 user(s) are reading this topic
0 members, 0 guests, 0 anonymous users