From: SVN Migration Date: Sun, 11 May 2003 06:33:36 +0000 (+0000) Subject: This commit was manufactured by cvs2svn to create branch 'PHP_4_3'. X-Git-Tag: php-4.3.2RC3~52 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=794994bfb52c438c89896d95cd8e1e67c06be3fc;p=php This commit was manufactured by cvs2svn to create branch 'PHP_4_3'. --- diff --git a/ext/standard/tests/array/bug22463.phpt b/ext/standard/tests/array/bug22463.phpt new file mode 100644 index 0000000000..dcede511bb --- /dev/null +++ b/ext/standard/tests/array/bug22463.phpt @@ -0,0 +1,29 @@ +--TEST-- +Bug #22463 (array_reduce() segfaults) +--FILE-- + +--EXPECT-- +int(5) 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) + } +} +