php-src/Zend/tests/uncaught_exception_error_supression.phpt
Nikita Popov e2b49d6c45 Don't use needs_live_range hook for "special" live ranges
In particular we were disgarding SILENCE live ranges in opcache,
because we decided that a MAY_BE_LONG type does not need a live
range.
2019-08-26 16:12:03 +02:00

19 lines
296 B
PHP

--TEST--
Error suppression should have no impact on uncaught exceptions
--FILE--
<?php
function abc() {
throw new Error('Example Exception');
}
@abc();
?>
--EXPECTF--
Fatal error: Uncaught Error: Example Exception in %s:%d
Stack trace:
#0 %s(%d): abc()
#1 {main}
thrown in %s on line %d