mirror of
https://github.com/php/php-src.git
synced 2024-12-12 19:33:31 +08:00
21 lines
308 B
PHP
Executable File
21 lines
308 B
PHP
Executable File
--TEST--
|
|
SPL: EmptyIterator
|
|
--SKIPIF--
|
|
<?php if (!extension_loaded("spl")) print "skip"; ?>
|
|
--FILE--
|
|
<?php
|
|
|
|
echo "===EmptyIterator===\n";
|
|
|
|
foreach(new LimitIterator(new EmptyIterator(), 0, 3) as $key => $val)
|
|
{
|
|
echo "$key=>$val\n";
|
|
}
|
|
|
|
?>
|
|
===DONE===
|
|
<?php exit(0);
|
|
--EXPECTF--
|
|
===EmptyIterator===
|
|
===DONE===
|