1 2 3 4 5 6 7 8 9 10 11 12 13 14
--TEST-- zend_throw_exception with NULL message --FILE-- <?php assert_options(ASSERT_EXCEPTION, true); try { $assert = 'assert'; $assert(false); } catch (AssertionError $assertionError) { echo 'Done' . PHP_EOL; } ?> --EXPECT-- Done