php-src/Zend/tests/each_001.phpt
2017-02-03 21:02:52 +01:00

13 lines
287 B
PHP

--TEST--
Testing each() with an undefined variable
--FILE--
<?php
each($foo);
?>
--EXPECTF--
Deprecated: The each() function is deprecated. This message will be suppressed on further calls in %s on line %d
Warning: Variable passed to each() is not an array or object in %s on line %d