PHP 7.2.0 Beta 1 Released

Voting

Please answer this simple SPAM challenge: max(eight, eight)?
(Example: nine)

The Note You're Voting On

jon at hackcraft dot net
10 years ago
Further to dexen at google dot me dot up with "use destructors to perform a cleanup in case of exception". The fact that PHP5 has destructors, exception handling, and predictable garbage collection (if there's a single reference in scope and the scope is left then the destructor is called immediately) allows for the use of the RAII idiom.

http://en.wikipedia.org/wiki/Resource_Acquisition_Is_Initialization and my own http://www.hackcraft.net/RAII/ describe this.

<< Back to user notes page

To Top