From: norraxx at seznam dot cz Operating system: windows XP Professional (cz) PHP version: 5.2.3 PHP Bug Type: *Directory/Filesystem functions Bug description: problem with opening russian name files/directories
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 ) -- Edit bug report at http://bugs.php.net/?id=42397&edit=1 -- Try a CVS snapshot (PHP 4.4): http://bugs.php.net/fix.php?id=42397&r=trysnapshot44 Try a CVS snapshot (PHP 5.2): http://bugs.php.net/fix.php?id=42397&r=trysnapshot52 Try a CVS snapshot (PHP 6.0): http://bugs.php.net/fix.php?id=42397&r=trysnapshot60 Fixed in CVS: http://bugs.php.net/fix.php?id=42397&r=fixedcvs Fixed in release: http://bugs.php.net/fix.php?id=42397&r=alreadyfixed Need backtrace: http://bugs.php.net/fix.php?id=42397&r=needtrace Need Reproduce Script: http://bugs.php.net/fix.php?id=42397&r=needscript Try newer version: http://bugs.php.net/fix.php?id=42397&r=oldversion Not developer issue: http://bugs.php.net/fix.php?id=42397&r=support Expected behavior: http://bugs.php.net/fix.php?id=42397&r=notwrong Not enough info: http://bugs.php.net/fix.php?id=42397&r=notenoughinfo Submitted twice: http://bugs.php.net/fix.php?id=42397&r=submittedtwice register_globals: http://bugs.php.net/fix.php?id=42397&r=globals PHP 3 support discontinued: http://bugs.php.net/fix.php?id=42397&r=php3 Daylight Savings: http://bugs.php.net/fix.php?id=42397&r=dst IIS Stability: http://bugs.php.net/fix.php?id=42397&r=isapi Install GNU Sed: http://bugs.php.net/fix.php?id=42397&r=gnused Floating point limitations: http://bugs.php.net/fix.php?id=42397&r=float No Zend Extensions: http://bugs.php.net/fix.php?id=42397&r=nozend MySQL Configuration Error: http://bugs.php.net/fix.php?id=42397&r=mysqlcfg