We have moved our forum to GitHub Discussions. For questions about Phalcon v3/v4/v5 you can visit here and for Phalcon v6 here.

Is it necessary to add finally block in index.php?

to unset $di, $application blah blah blah...



98.9k

All non-temporary resources and variables allocated during a requests are automatically freed by PHP, so it's only necessary if you need to release something that php cannot know to.