mirror of
https://github.com/php/php-src.git
synced 2026-04-29 11:13:36 +02:00
- use something we know it exists...
This commit is contained in:
@@ -5,10 +5,10 @@ Havard Eide <nucleuz@gmail.com>
|
||||
#PHPTestFest2009 Norway 2009-06-09 \o/
|
||||
--FILE--
|
||||
<?php
|
||||
$it = new DirectoryIterator("/tmp");
|
||||
$it = new DirectoryIterator(__DIR__);
|
||||
foreach( $it as &$file ) {
|
||||
echo $file . "\n";
|
||||
}
|
||||
?>
|
||||
--EXPECTF--
|
||||
Fatal error: An iterator cannot be used with foreach by reference in %s on line %d
|
||||
Fatal error: An iterator cannot be used with foreach by reference in %s on line %d
|
||||
|
||||
Reference in New Issue
Block a user