php-src/Zend/tests/each_002.phpt

31 lines
359 B
Plaintext
Raw Normal View History

2008-05-13 01:57:21 +08:00
--TEST--
Testing each() with array and object
--FILE--
<?php
$foo = each(new stdClass);
var_dump($foo);
var_dump(each(new stdClass));
$a = array(new stdClass);
var_dump(each($a));
?>
--EXPECTF--
bool(false)
bool(false)
array(4) {
[1]=>
object(stdClass)#1 (0) {
}
["value"]=>
object(stdClass)#1 (0) {
}
[0]=>
int(0)
["key"]=>
int(0)
}