1--TEST-- 2call_user_func() with ref arg and type check 3--FILE-- 4<?php 5 6function test(Type &$ref) { 7} 8try { 9 call_user_func('test', 0); 10} catch (TypeError $e) { 11 echo $e->getMessage(), "\n"; 12} 13 14?> 15--EXPECTF-- 16Warning: test(): Argument #1 ($ref) must be passed by reference, value given in %s on line %d 17test(): Argument #1 ($ref) must be of type Type, int given, called in %s on line %d 18