1--TEST-- 2Try catch finally (re-throw exception in catch block) 3--CREDITS-- 4adoy 5--FILE-- 6<?php 7function dummy($msg) { 8 var_dump($msg); 9} 10try { 11 try { 12 var_dump("try"); 13 return; 14 } catch (Exception $e) { 15 dummy("catch"); 16 throw $e; 17 } finally { 18 dummy("finally"); 19 } 20} catch (Exception $e) { 21 dummy("catch2"); 22} finally { 23 dummy("finally2"); 24} 25var_dump("end"); 26?> 27--EXPECTF-- 28string(3) "try" 29string(7) "finally" 30string(8) "finally2" 31