mirror of
https://github.com/php/php-src.git
synced 2024-10-02 23:36:16 +00:00
17 lines
435 B
Plaintext
17 lines
435 B
Plaintext
|
--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===
|