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

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



85.4k

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.