Browse Source

- use something we know it exists...

pull/12/head
Pierre Joye 15 years ago
parent
commit
f438a87d90
  1. 4
      ext/spl/tests/DirectoryIterator_by_reference.phpt

4
ext/spl/tests/DirectoryIterator_by_reference.phpt

@ -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…
Cancel
Save