1--TEST-- 2BIND_STATIC may destroy a variable with a throwing destructor 3--FILE-- 4<?php 5class Test { 6 function __destruct() { 7 throw new Exception("Foo"); 8 } 9} 10try { 11 $new = new Test; 12 static $new; 13} catch (Exception $e) { 14 echo $e->getMessage(), "\n"; 15} 16?> 17--EXPECT-- 18Foo 19