Annotation of embedaddon/php/ext/standard/tests/array/bug23581.phpt, revision 1.1
1.1 ! misho 1: --TEST--
! 2: Bug #23581 (array_map(NULL, array, array, ...) yields an undefined result)
! 3: --FILE--
! 4: <?php
! 5: var_dump(
! 6: array_map(
! 7: NULL,
! 8: array(1,2,3),
! 9: array(4,5,6),
! 10: array(7,8,9)
! 11: )
! 12: );
! 13: ?>
! 14: --EXPECT--
! 15: array(3) {
! 16: [0]=>
! 17: array(3) {
! 18: [0]=>
! 19: int(1)
! 20: [1]=>
! 21: int(4)
! 22: [2]=>
! 23: int(7)
! 24: }
! 25: [1]=>
! 26: array(3) {
! 27: [0]=>
! 28: int(2)
! 29: [1]=>
! 30: int(5)
! 31: [2]=>
! 32: int(8)
! 33: }
! 34: [2]=>
! 35: array(3) {
! 36: [0]=>
! 37: int(3)
! 38: [1]=>
! 39: int(6)
! 40: [2]=>
! 41: int(9)
! 42: }
! 43: }
! 44:
FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>