php-src/tests/lang/zend_throw_exception_001.phpt
twosee cb2275866d Fix BC break of zend_throw_exception
This also fixes a SegFault

Closes GH-5670
2020-06-06 17:17:44 +02:00

14 lines
244 B
PHP

--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