xref: /PHP-7.0/Zend/tests/bug70689.phpt (revision a8ae8816)
1--TEST--
2Bug #70689 (Exception handler does not work as expected)
3--FILE--
4<?php
5
6function foo($foo) {
7	echo "Executing foo\n";
8}
9
10set_error_handler(function($errno, $errstr) {
11	throw new Exception($errstr);
12});
13
14try {
15	foo();
16} catch (Exception $e) {
17	echo $e->getMessage(), "\n";
18}
19
20?>
21--EXPECTF--
22Missing argument 1 for foo(), called in %sbug70689.php on line %d and defined
23