From 065a192411cd268d3aa2bc73e047c17d41d37925 Mon Sep 17 00:00:00 2001 From: Moriyoshi Koizumi Date: Sun, 11 May 2003 06:33:35 +0000 Subject: [PATCH] Added a test case for bug #23581 --- ext/standard/tests/array/bug23581.phpt | 44 ++++++++++++++++++++++++++ 1 file changed, 44 insertions(+) create mode 100644 ext/standard/tests/array/bug23581.phpt diff --git a/ext/standard/tests/array/bug23581.phpt b/ext/standard/tests/array/bug23581.phpt new file mode 100644 index 0000000000..06e1e388ef --- /dev/null +++ b/ext/standard/tests/array/bug23581.phpt @@ -0,0 +1,44 @@ +--TEST-- +Bug #23581 (array_map(NULL, array, array, ...) yields an undefined result) +--FILE-- + +--EXPECT-- +array(3) { + [0]=> + array(3) { + [0]=> + int(1) + [1]=> + int(4) + [2]=> + int(7) + } + [1]=> + array(3) { + [0]=> + int(2) + [1]=> + int(5) + [2]=> + int(8) + } + [2]=> + array(3) { + [0]=> + int(3) + [1]=> + int(6) + [2]=> + int(9) + } +} + -- 2.50.1