1
0
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:
Pierre Joye
2011-09-06 07:26:05 +00:00
parent d29a253629
commit 71cda5ea0a
@@ -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