summaryrefslogtreecommitdiff
path: root/Zend/tests/bug31720.phpt
blob: c4680a4789e11c5d71f2e1d0016f01d1b9634e9e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
--TEST--
Bug #31720 (Invalid object callbacks not caught in array_walk())
--FILE--
<?php
$array = array('at least one element');

array_walk($array, array($nonesuchvar,'show'));
?>
===DONE===
--EXPECTF--
Notice: Undefined variable: nonesuchvar in %s on line %d

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
===DONE===