1--TEST--
2Observer: End handlers fire after a userland fatal error
3--SKIPIF--
4<?php if (!extension_loaded('zend-test')) die('skip: zend-test extension required'); ?>
5--INI--
6zend_test.observer.enabled=1
7zend_test.observer.observe_all=1
8zend_test.observer.show_return_value=1
9--FILE--
10<?php
11function foo()
12{
13    trigger_error('Foo error', E_USER_ERROR);
14}
15
16foo();
17
18echo 'You should not see this.';
19?>
20--EXPECTF--
21<!-- init '%s%eobserver_error_%d.php' -->
22<file '%s%eobserver_error_%d.php'>
23  <!-- init foo() -->
24  <foo>
25
26Fatal error: Foo error in %s on line %d
27  </foo:NULL>
28</file '%s%eobserver_error_%d.php'>
29