mirror of
https://github.com/php/php-src.git
synced 2024-12-14 12:26:19 +08:00
31 lines
359 B
PHP
31 lines
359 B
PHP
--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)
|
|
}
|