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 14--EXPECTF-- 15 16Fatal error: Uncaught Exception: My custom error in %s:%d 17Stack trace: 18#0 %s(%d): {closure}(8, 'A non well form...', '%s', %d, Array) 19#1 %s(%d): {closure}('7as') 20#2 {main} 21 thrown in %s on line %d 22