mirror of
https://github.com/php/php-src.git
synced 2025-01-24 12:43:38 +08:00
Added a test case for bug #23581
This commit is contained in:
parent
b666d8c679
commit
065a192411
44
ext/standard/tests/array/bug23581.phpt
Normal file
44
ext/standard/tests/array/bug23581.phpt
Normal file
@ -0,0 +1,44 @@
|
||||
--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)
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user