cvs: php4 /ext/standard/tests/array bug23581.phpt
| From: | Moriyoshi Koizumi | Date: | Sun, 11 May 2003 06:33:35 +0000 |
| Subject: | cvs: php4 /ext/standard/tests/array bug23581.phpt | ||
| Groups: | php.cvs | ||
| Request: | Send a blank email to php-cvs+get-20826@lists.php.net to get a copy of this message | ||
moriyoshi Sun May 11 02:33:35 2003 EDT
Added files:
/php4/ext/standard/tests/array bug23581.phpt
Log:
Added a test case for bug #23581
Index: php4/ext/standard/tests/array/bug23581.phpt
+++ php4/ext/standard/tests/array/bug23581.phpt
--TEST--
Bug #23581 (array_map(NULL, array, array, ...) yields an undefined result)
--FILE--
<?php
var_dump(
array_map(
NULL,
array(1,2,3),
array(4,5,6),
array(7,8,9)
)
);
?>
--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)
}
}