Annotation of embedaddon/php/Zend/tests/bug31720.phpt, revision 1.1
1.1 ! misho 1: --TEST--
! 2: Bug #31720 (Invalid object callbacks not caught in array_walk())
! 3: --FILE--
! 4: <?php
! 5: $array = array('at least one element');
! 6:
! 7: array_walk($array, array($nonesuchvar,'show'));
! 8: ?>
! 9: ===DONE===
! 10: --EXPECTF--
! 11: Notice: Undefined variable: nonesuchvar in %s on line %d
! 12:
! 13: Warning: array_walk() expects parameter 2 to be a valid callback, first array member is not a valid class name or object in %s on line %d
! 14: ===DONE===
FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>