Bug #75309 [NEW]: Iterators are no longer alphabetical

From: Date: Wed, 04 Oct 2017 13:34:00 +0000
Subject: Bug #75309 [NEW]: Iterators are no longer alphabetical
Groups: php.bugs 
Request: Send a blank email to php-bugs+get-211503@lists.php.net to get a copy of this message
From:             james at bluebaytravel dot co dot uk
Operating system: Ubuntu
PHP version:      7.1.10
Package:          SPL related
Bug Type:         Bug
Bug description:Iterators are no longer alphabetical

Description:
------------
In PHP 7.1.10 iterators are no longer iterating through results
alphabetically.

PHP 7.1.8 is the last version I've been able to see the expected result
on (I've not been able to test anything later).

In our code, we have a folder with ,php files in there and two
sub-folders (Api and Dashboard) containing more .php files. In PHP 7.1.8
the test script iterators through them alphabetically but in PHP 7.1.10
the Api sub-folder is listed at the end of the iterator.

Test script:
---------------
$directoryIterator = new RecursiveDirectoryIterator($path);
$routeIterator = new RecursiveIteratorIterator($directoryIterator);
$routes = new RegexIterator($routeIterator, '/^.+\.php$/i',
RecursiveRegexIterator::GET_MATCH);


-- 
Edit bug report at https://bugs.php.net/bug.php?id=75309&edit=1
-- 
Try a snapshot (PHP 5.4):   https://bugs.php.net/fix.php?id=75309&r=trysnapshot54
Try a snapshot (PHP 5.5):   https://bugs.php.net/fix.php?id=75309&r=trysnapshot55
Try a snapshot (trunk):     https://bugs.php.net/fix.php?id=75309&r=trysnapshottrunk
Fixed in SVN:               https://bugs.php.net/fix.php?id=75309&r=fixed
Fixed in release:           https://bugs.php.net/fix.php?id=75309&r=alreadyfixed
Need backtrace:             https://bugs.php.net/fix.php?id=75309&r=needtrace
Need Reproduce Script:      https://bugs.php.net/fix.php?id=75309&r=needscript
Try newer version:          https://bugs.php.net/fix.php?id=75309&r=oldversion
Not developer issue:        https://bugs.php.net/fix.php?id=75309&r=support
Expected behavior:          https://bugs.php.net/fix.php?id=75309&r=notwrong
Not enough info:            https://bugs.php.net/fix.php?id=75309&r=notenoughinfo
Submitted twice:            https://bugs.php.net/fix.php?id=75309&r=submittedtwice
register_globals:           https://bugs.php.net/fix.php?id=75309&r=globals
PHP 4 support discontinued: https://bugs.php.net/fix.php?id=75309&r=php4
Daylight Savings:           https://bugs.php.net/fix.php?id=75309&r=dst
IIS Stability:              https://bugs.php.net/fix.php?id=75309&r=isapi
Install GNU Sed:            https://bugs.php.net/fix.php?id=75309&r=gnused
Floating point limitations: https://bugs.php.net/fix.php?id=75309&r=float
No Zend Extensions:         https://bugs.php.net/fix.php?id=75309&r=nozend
MySQL Configuration Error:  https://bugs.php.net/fix.php?id=75309&r=mysqlcfg



Thread (4 messages)

« previous php.bugs (#211503) next »