--TEST--
Observer: Basic observability of userland functions with uncaught exceptions
--EXTENSIONS--
zend_test
--INI--
zend_test.observer.enabled=1
zend_test.observer.show_output=1
zend_test.observer.observe_all=1
--FILE--
--EXPECTF--
Call #0
Call #1
Call #2
Fatal error: Uncaught RuntimeException: Third time is a charm in %s%eobserver_exception_%d.php:%d
Stack trace:
#0 %s%eobserver_exception_%d.php(%d): foo()
#1 {main}
thrown in %s%eobserver_exception_%d.php on line %d