mirror of
https://github.com/php/php-src.git
synced 2024-10-19 07:22:40 +00:00
25 lines
422 B
Plaintext
25 lines
422 B
Plaintext
|
--TEST--
|
||
|
Bug #44487 (call_user_method_array issues a warning when throwing an exception)
|
||
|
--INI--
|
||
|
error_reporting = E_ALL & ~E_DEPRECATED
|
||
|
--FILE--
|
||
|
<?php
|
||
|
|
||
|
class Foo
|
||
|
{
|
||
|
public function test()
|
||
|
{
|
||
|
print 'test';
|
||
|
throw new Exception();
|
||
|
}
|
||
|
}
|
||
|
|
||
|
try {
|
||
|
$bar = new Foo();
|
||
|
call_user_method_array('test', $bar, array()) ;
|
||
|
} catch (Exception $e) {
|
||
|
}
|
||
|
?>
|
||
|
--EXPECT--
|
||
|
test
|