Bug #74934 [Opn->Nab]: ScanDir Have Problem with UTF8 Character
| From: | ab@php.net | Date: | Tue, 18 Jul 2017 10:22:15 +0000 |
| Subject: | Bug #74934 [Opn->Nab]: ScanDir Have Problem with UTF8 Character | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-210105@lists.php.net to get a copy of this message | ||
Edit report at https://bugs.php.net/bug.php?id=74934&edit=1
ID: 74934
Updated by: ab@php.net
Reported by: global dot ninety at gmail dot com
Summary: ScanDir Have Problem with UTF8 Character
-Status: Open
+Status: Not a bug
Type: Bug
Package: *General Issues
Operating System: Win8/Ubuntu/CentOS
PHP Version: 5.6.31
Block user comment: N
Private report: N
New Comment:
Thanks for the report. For the Windows part - these issues are fixed in PHP 7.1, please also check
UPGRADING. On other platforms, it is much a topic of system configuration and process locale, not
about PHP itself.
Thanks.
Previous Comments:
------------------------------------------------------------------------
[2017-07-17 07:05:21] global dot ninety at gmail dot com
Description:
------------
scandir Have Problem with UTF8 Character
and so on: DirectoryIterator / opendir / readdir
i tested in PHP5.6/7.0
error:
The system cannot find the file specified. (code: 2)
To fix the problem temporarily i use ext WFIO (https://github.com/kenjiuno/php-wfio)
Test script:
---------------
$folder = '61-تست تست';
$path = 'files/'.$folder;
print_r(scandir("$path"));
------------------------------------------------------------------------
--
Edit this bug report at https://bugs.php.net/bug.php?id=74934&edit=1