Most resources on PHP never touch memory management because the language itself is pretty good at doing this for you. However, in PHP you often end up dealing with external resources which aren’t memory — database handles, sessions, database transactions, etc. These external resources could be managed most cleanly using some form of RAII object. I initially thought that PHP