pajoye Tue, 06 Sep 2011 07:26:05 +0000 Revision: http://svn.php.net/viewvc?view=revision&revision=316224
Log: - use something we know it exists... Changed paths: U php/php-src/branches/PHP_5_3/ext/spl/tests/DirectoryIterator_by_reference.phpt U php/php-src/branches/PHP_5_4/ext/spl/tests/DirectoryIterator_by_reference.phpt U php/php-src/trunk/ext/spl/tests/DirectoryIterator_by_reference.phpt Modified: php/php-src/branches/PHP_5_3/ext/spl/tests/DirectoryIterator_by_reference.phpt =================================================================== --- php/php-src/branches/PHP_5_3/ext/spl/tests/DirectoryIterator_by_reference.phpt 2011-09-06 07:23:20 UTC (rev 316223) +++ php/php-src/branches/PHP_5_3/ext/spl/tests/DirectoryIterator_by_reference.phpt 2011-09-06 07:26:05 UTC (rev 316224) @@ -5,10 +5,10 @@ #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 \ No newline at end of file +Fatal error: An iterator cannot be used with foreach by reference in %s on line %d Modified: php/php-src/branches/PHP_5_4/ext/spl/tests/DirectoryIterator_by_reference.phpt =================================================================== --- php/php-src/branches/PHP_5_4/ext/spl/tests/DirectoryIterator_by_reference.phpt 2011-09-06 07:23:20 UTC (rev 316223) +++ php/php-src/branches/PHP_5_4/ext/spl/tests/DirectoryIterator_by_reference.phpt 2011-09-06 07:26:05 UTC (rev 316224) @@ -5,10 +5,10 @@ #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 \ No newline at end of file +Fatal error: An iterator cannot be used with foreach by reference in %s on line %d Modified: php/php-src/trunk/ext/spl/tests/DirectoryIterator_by_reference.phpt =================================================================== --- php/php-src/trunk/ext/spl/tests/DirectoryIterator_by_reference.phpt 2011-09-06 07:23:20 UTC (rev 316223) +++ php/php-src/trunk/ext/spl/tests/DirectoryIterator_by_reference.phpt 2011-09-06 07:26:05 UTC (rev 316224) @@ -5,10 +5,10 @@ #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 \ No newline at end of file +Fatal error: An iterator cannot be used with foreach by reference in %s on line %d
-- PHP CVS Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php