Bug #74934 [Com]: ScanDir Have Problem with UTF8 Character

From: Date: Thu, 20 Jul 2017 20:50:19 +0000
Subject: Bug #74934 [Com]: ScanDir Have Problem with UTF8 Character
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-210153@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 Comment by: global dot ninety at gmail dot com Reported by: global dot ninety at gmail dot com Summary: ScanDir Have Problem with UTF8 Character 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: 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?? Previous Comments: ------------------------------------------------------------------------ [2017-07-18 21:22:05] ab@php.net Related To: Bug #74927 ------------------------------------------------------------------------ [2017-07-18 10:22:12] 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-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

« previous php.bugs (#210153) next »