try{ } finally{} can create infinite chains of exceptions

 [2015-11-20 08:21 UTC] laruence@php.net

Description:
------------
try{ } finally{} can create infinite chains of exceptions

Test script:
---------------
<?php
$e = new Exception("Bar");
try {
      throw new Exception("Foo", 0, $e);
} finally {
      throw $e;
}

Expected result:
----------------
exit normally 

Actual result:
--------------
script hangs