1--TEST--
2Bug #25038 (call_user_func issues warning if function throws exception)
3--FILE--
4<?php
5
6function bar($x='no argument')
7{
8    throw new Exception("This is an exception from bar({$x}).");
9}
10try
11{
12    bar('first try');
13}
14catch (Exception $e)
15{
16    print $e->getMessage()."\n";
17}
18try
19{
20    call_user_func('bar','second try');
21}
22catch (Exception $e)
23{
24    print $e->getMessage()."\n";
25}
26
27?>
28--EXPECT--
29This is an exception from bar(first try).
30This is an exception from bar(second try).
31