1--TEST-- 2Test array_map() function : usage variations - non existent 'callback' function 3--FILE-- 4<?php 5/* Prototype : array array_map ( callback $callback , array $arr1 [, array $... ] ) 6 * Description: Applies the callback to the elements of the given arrays 7 * Source code: ext/standard/array.c 8 */ 9 10/* 11 * Test array_map() by passing non existent function for $callback argument 12 */ 13 14echo "*** Testing array_map() : non existent 'callback' function ***\n"; 15 16// arrays to be passed as arguments 17$arr1 = array(1, 2); 18$arr2 = array("one", "two"); 19$arr3 = array(1.1, 2.2); 20 21var_dump( array_map('non_existent', $arr1, $arr2, $arr3) ); 22 23echo "Done"; 24?> 25--EXPECTF-- 26*** Testing array_map() : non existent 'callback' function *** 27 28Warning: array_map() expects parameter 1 to be a valid callback, function 'non_existent' not found or invalid function name in %s on line %d 29NULL 30Done 31