1--TEST-- 2GH-16293: Exception in assert() callback with bail enabled 3--FILE-- 4<?php 5 6@assert_options(ASSERT_EXCEPTION, 0); 7@assert_options(ASSERT_BAIL, 1); 8@assert_options(ASSERT_CALLBACK, function () { 9 throw new Exception('Boo'); 10}); 11assert(false); 12 13?> 14--EXPECTF-- 15Warning: assert(): assert(false) failed in %s on line %d 16 17Warning: Uncaught Exception: Boo in %s:%d 18Stack trace: 19%a 20