1--TEST-- 2Bug #44487 (call_user_method_array issues a warning when throwing an exception) 3--INI-- 4error_reporting = E_ALL & ~E_DEPRECATED 5--FILE-- 6<?php 7 8class Foo 9{ 10 public function test() 11 { 12 print 'test'; 13 throw new Exception(); 14 } 15} 16 17try { 18 $bar = new Foo(); 19 call_user_method_array('test', $bar, array()) ; 20} catch (Exception $e) { 21} 22?> 23--EXPECT-- 24test 25