Return to callbacks_002.phpt CVS log | Up to [ELWIX - Embedded LightWeight unIX -] / embedaddon / php / ext / standard / tests / general_functions |
1.1 misho 1: --TEST-- 2: call_user_func(): Wrong parameters 3: --FILE-- 4: <?php 5: 6: call_user_func(array('Foo', 'bar')); 7: call_user_func(array(NULL, 'bar')); 8: call_user_func(array('stdclass', NULL)); 9: 10: ?> 11: --EXPECTF-- 12: Warning: call_user_func() expects parameter 1 to be a valid callback, class 'Foo' not found in %s on line %d 13: 14: Warning: call_user_func() expects parameter 1 to be a valid callback, first array member is not a valid class name or object in %s on line %d 15: 16: Warning: call_user_func() expects parameter 1 to be a valid callback, second array member is not a valid method in %s on line %d