1--TEST--
2Test array_map() function : usage variations - non existent 'callback' function
3--FILE--
4<?php
5/*
6 * Test array_map() by passing non existent function for $callback argument
7 */
8
9echo "*** Testing array_map() : non existent 'callback' function ***\n";
10
11// arrays to be passed as arguments
12$arr1 = array(1, 2);
13$arr2 = array("one", "two");
14$arr3 = array(1.1, 2.2);
15
16try {
17    var_dump( array_map('non_existent', $arr1, $arr2, $arr3) );
18} catch (TypeError $e) {
19    echo $e->getMessage(), "\n";
20}
21
22echo "Done";
23?>
24--EXPECT--
25*** Testing array_map() : non existent 'callback' function ***
26array_map(): Argument #1 ($callback) must be a valid callback or null, function "non_existent" not found or invalid function name
27Done
28