1--TEST-- 2Bug #72057 (PHP hangs when user error handler throws exception after Notice from type coercion) 3--FILE-- 4<?php 5 6set_error_handler( 7 function() { 8 throw new Exception("My custom error"); 9 } 10); 11 12(function (int $i) { bar(); })("7as"); 13--EXPECTF-- 14Fatal error: Uncaught Exception: My custom error in %s:%d 15Stack trace: 16#0 %s(%d): {closure}(8, 'A non well form...', '%s', %d, Array) 17#1 %s(%d): {closure}('7as') 18#2 {main} 19 thrown in %s on line %d 20