Is there a way to implement a finally block for PHP versions below 5.5?
You can do like this,
try {
# ...
} catch (Exception $e) {
# ... but don't re- throw $e!
}
# ... finally ...
if (isset ($e)) {
throw $e;
}
But, I should recommend to upgrade PHP. It shouldn't be that hassle.