1
0
mirror of https://github.com/php/php-src.git synced 2026-04-29 03:03:26 +02:00

test for Bug #31720

This commit is contained in:
Stanislav Malyshev
2005-02-02 10:31:53 +00:00
parent 83e6e40438
commit d38eed95ea
+16
View File
@@ -0,0 +1,16 @@
--TEST--
Bug #31720 (Invalid object callbacks not caught in array_walk())
--FILE--
<?
$array = array('at least one element');
array_walk($array, array($nonesuchvar,'show'));
?>
===DONE===
--EXPECTF--
Notice: Undefined variable: nonesuchvar in %s on line %d
Notice: Non-callable array passed to zend_call_function() in %s on line %d
Warning: array_walk(): Unable to call Array() - function does not exist in %s on line %d
===DONE===