xref: /PHP-7.4/Zend/tests/bug31720.phpt (revision 1e650ca3)
1--TEST--
2Bug #31720 (Invalid object callbacks not caught in array_walk())
3--FILE--
4<?php
5$array = array('at least one element');
6
7array_walk($array, array($nonesuchvar,'show'));
8?>
9===DONE===
10--EXPECTF--
11Notice: Undefined variable: nonesuchvar in %s on line %d
12
13Warning: 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===
15