| 
        php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login | 
 PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits             
             [2007-08-24 10:31 UTC] tony2001@php.net
  | 
    |||||||||||||||||||||||||||
            
                 
                Copyright © 2001-2025 The PHP GroupAll rights reserved.  | 
        Last updated: Tue Nov 04 03:00:01 2025 UTC | 
Description: ------------ functions: opendir, readdir, scandir etc... 1. can`t read/open russian named directories. 2. question marks are returned as a name of file while reading dir. 3. file exists write when create russian name directory Reproduce code: --------------- <?php mkdir('./?????????????'); // there is russian named dir... $x = scandir('.'); print_r($x); echo "<br />{$x[2]}\n<br />"; chdir($x[2]); $x = scandir('.'); print_r($x); ?> Expected result: ---------------- I explected to create dir "?????????????" and go to this dir. Actual result: -------------- Warning: mkdir() [function.mkdir]: File exists in D:\www\bad\index.php on line 2 Array ( [0] => . [1] => .. [2] => ????????????? [3] => index.php ) ????????????? Array ( [0] => . [1] => .. [2] => ????????????? [3] => index.php )