php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #74934 ScanDir Have Problem with UTF8 Character
Submitted: 2017-07-17 07:05 UTC Modified: 2017-07-18 10:22 UTC
Votes:2
Avg. Score:5.0 ± 0.0
Reproduced:2 of 2 (100.0%)
Same Version:1 (50.0%)
Same OS:1 (50.0%)
From: global dot ninety at gmail dot com Assigned:
Status: Not a bug Package: *General Issues
PHP Version: 5.6.31 OS: Win8/Ubuntu/CentOS
Private report: No CVE-ID: None
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes.
If you forgot your password, you can retrieve your password here.
Password:
Status:
Package:
Bug Type:
Summary:
From: global dot ninety at gmail dot com
New email:
PHP Version: OS:

 

 [2017-07-17 07:05 UTC] 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"));


Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2017-07-18 10:22 UTC] ab@php.net
-Status: Open +Status: Not a bug
 [2017-07-18 10:22 UTC] ab@php.net
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.
 [2017-07-20 20:50 UTC] global dot ninety at gmail dot com
i have this problem

i have linux host from HostUpon.

Information:
System: Linux cs11.uhcloud.com 2.6.32-673.8.1.lve1.4.3.el6.x86_64 #1 SMP Wed Feb 10 08:57:30 EST 2016 x86_64 
PHP Version: 7.1.7

how to fix this??
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Sun Dec 22 05:01:30 2024 UTC