mirror of
https://github.com/php/php-src.git
synced 2025-08-19 08:49:28 +02:00
- use something we know it exists...
This commit is contained in:
parent
80a2175c37
commit
1d22c75eb3
1 changed files with 2 additions and 2 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue