From:             
Operating system: CentOS release 5.7 (Final)
PHP version:      5.3.8
Package:          Filesystem function related
Bug Type:         Bug
Bug description:Glob skips utf8 file names after setlocale en_US.UTF-8

Description:
------------
The title says it all. I think it will be faster if you run the test I
attached.
Gunzip the archive on a Linux Server and run glob-locale-test.php.

You can see it directly on http://www.maisqi.com/glob-locale-test.php

Test script:
---------------
See the script on the attached archive (glob-locale-test.php).
It tries to list the files on the associated folder (that is also on the
archive) three times.

1. The first one uses glob with the default locale.
2. The second, also uses glob but after the locale has been set to
en_US.UTF-8.
3. The third, uses DirectoryIterator.

Expected result:
----------------
All tries should list 5 files.

Actual result:
--------------
The second try only prints the file with a ascii file name.

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

Reply via email to