mirror of
https://github.com/php/php-src.git
synced 2024-10-19 07:22:40 +00:00
18 lines
268 B
Plaintext
18 lines
268 B
Plaintext
|
--TEST--
|
||
|
SPL: FilesystemIterator and foreach
|
||
|
--SKIPIF--
|
||
|
<?php if (!extension_loaded("spl")) print "skip"; ?>
|
||
|
--FILE--
|
||
|
<?php
|
||
|
$count = 0;
|
||
|
foreach(new FilesystemIterator('CVS') as $ent)
|
||
|
{
|
||
|
++$count;
|
||
|
}
|
||
|
var_dump($count > 0);
|
||
|
?>
|
||
|
===DONE===
|
||
|
--EXPECTF--
|
||
|
bool(true)
|
||
|
===DONE===
|