Bug #64699 [Opn->Csd]: is_dir() is inaccurate result on Windows with japanese locale.

From: Date: Mon, 08 Aug 2016 10:02:07 +0000
Subject: Bug #64699 [Opn->Csd]: is_dir() is inaccurate result on Windows with japanese locale.
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-203068@lists.php.net to get a copy of this message
Edit report at https://bugs.php.net/bug.php?id=64699&edit=1 ID: 64699 Updated by: ab@php.net Reported by: sharkpp at gmail dot com Summary: is_dir() is inaccurate result on Windows with japanese locale. -Status: Open +Status: Closed Type: Bug Package: Filesystem function related Operating System: Windows PHP Version: 5.4.14 -Assigned To: +Assigned To: ab Block user comment: N Private report: N New Comment: Fixed in PHP 7.1, please read UPGRADING and use UTF-8. Thanks. Previous Comments: ------------------------------------------------------------------------ [2014-02-02 14:39:42] severnuri at yahoo dot com Similar problem with directory names having Turkish letters şŞıİğĞ using Windows 8.1 Pro english I was calling is_dir() on entries returned by readdir() in a script, and noticed that readdir() was transliterating names containing such letters, hence is_dir() was always failing. I assume this is the same issue so did not open another bug. Please advise if I should file a new bug for this. ------------------------------------------------------------------------ [2013-08-06 01:48:50] ku at digitaldolphins dot jp Ah, sorry... --- Insert the prefix: wfio:// is_dir("wfio://C:/") is_dir("wfio://C:\\") --- It will list entries in Shift-JIS charset, with Japanese Windows. php.exe -r "print_r(scandir('C:/'));" --- It will list entries in UTF8. php.exe -r "print_r(scandir('wfio://C:/'));" --- "wfio://" may support: fopen, fwrite, fread, stat, fclose, opendir, readdir, closedir, rename, copy, unlink, mkdir, rmdir. Here is first post about php-wfio. http://news.php.net/php.windows/30987 Thanks ------------------------------------------------------------------------ [2013-07-30 16:48:43] ab@php.net Related To: Bug #65358 ------------------------------------------------------------------------ [2013-05-25 04:28:05] sharkpp at gmail dot com Thank you. I hope a major version. Incidentally, php-wfio is not work. Because is_dir() is not implemented. ------------------------------------------------------------------------ [2013-05-07 06:54:57] pajoye@php.net For the record, it is not that it won't be fixed but can't be fixed at this stage but in a major version. Not only PHP's code and not only for file stream wrapper. ------------------------------------------------------------------------ The remainder of the comments for this report are too long. To view the rest of the comments, please view the bug report online at https://bugs.php.net/bug.php?id=64699 -- Edit this bug report at https://bugs.php.net/bug.php?id=64699&edit=1

« previous php.bugs (#203068) next »