mirror of
https://github.com/php/php-src.git
synced 2024-12-14 20:33:36 +08:00
15 lines
411 B
PHP
15 lines
411 B
PHP
--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===
|