Annotation of embedaddon/php/ext/standard/tests/general_functions/bug44487.phpt, revision 1.1.1.1
1.1 misho 1: --TEST--
2: Bug #44487 (call_user_method_array issues a warning when throwing an exception)
3: --INI--
4: error_reporting = E_ALL & ~E_DEPRECATED
5: --FILE--
6: <?php
7:
8: class Foo
9: {
10: public function test()
11: {
12: print 'test';
13: throw new Exception();
14: }
15: }
16:
17: try {
18: $bar = new Foo();
19: call_user_method_array('test', $bar, array()) ;
20: } catch (Exception $e) {
21: }
22: ?>
23: --EXPECT--
24: test
FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>