mirror of
https://github.com/php/php-src.git
synced 2024-12-18 06:21:41 +08:00
a555cc0b3d
Remove most of the `===DONE===` tags and its variations. Keep `===DONE===` if the test output otherwise becomes empty. Closes GH-4872.
16 lines
433 B
PHP
16 lines
433 B
PHP
--TEST--
|
|
Bug #31720 (Invalid object callbacks not caught in array_walk())
|
|
--FILE--
|
|
<?php
|
|
$array = array('at least one element');
|
|
|
|
try {
|
|
array_walk($array, array($nonesuchvar,'show'));
|
|
} catch (TypeError $e) {
|
|
echo $e->getMessage(), "\n";
|
|
}
|
|
?>
|
|
--EXPECTF--
|
|
Warning: Undefined variable: nonesuchvar in %s on line %d
|
|
array_walk() expects parameter 2 to be a valid callback, first array member is not a valid class name or object
|