summaryrefslogtreecommitdiff
path: root/Zend/tests/uncaught_exception_error_supression.phpt
blob: 1130a9d99b0d458a624ffa592487e634f3db4cb4 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
--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