mirror of
https://github.com/php/php-src.git
synced 2024-11-25 19:05:31 +08:00
19 lines
244 B
PHP
Executable File
19 lines
244 B
PHP
Executable File
--TEST--
|
|
SPL: EmptyIterator
|
|
--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===
|