News for hackers. Stuff that matters.
Re:PHP doesn't need 'finally' by wvenable on Saturday December 11, 2010 @01:00AM (#1994315)
When a single script terminates, all the memory is deallocated. Basically, as you said, it's just like process termination in the OS.
Re:PHP doesn't need 'finally' by dan_netwalker on Tuesday December 14, 2010 @01:25PM (#2005135)
Well, in fact you could serialize/unserialize the objects and store them somewhere, making use of the "magic" functions __sleep() and __wakeup(), if I recall correctly. But yes, as soon as the web server ends the response or the script gets to the end, it's finished
Re:PHP doesn't need 'finally' by TimJYoung on Saturday December 11, 2010 @12:07PM (#1995160)
Thanks. That's what I thought, but I'm fairly new to PHP, and wasn't entirely sure.