<?php class KillMe { public function __destruct() { echo 'Thank you!'; } } function err($ignored) { throw new Exception; } function foo() { $k = new KillMe; err($k); } try { foo(); } catch ( Exception $e ) { echo 'Handling error. Destructor has not yet fired.'; }
You have javascript disabled. You will not be able to edit any code.
There are `>1` results