php-wfio icon indicating copy to clipboard operation
php-wfio copied to clipboard

Will support glob?

Open esam-github opened this issue 7 years ago • 5 comments

Hi, thanks for great extension. Sometimes the glob() is easier for scandir(), and the glob() can search for all path names for the matching pattern, will support glob()?

esam-github avatar Apr 17 '17 09:04 esam-github

Unicode (UTF-8) support for Windows is available on PHP 7.1 now, in case updating PHP is feasible.

hfhchan avatar Apr 17 '17 10:04 hfhchan

@hfhchan Yes, PHP 7.1 (Windows) can support UTF-8 filename now. internal_encoding enlarged its support range for including file system path encoding. And php_wfio is now incompatible with PHP 7.1 due to side effects of internal_encoding change.

http://php.net/manual/en/migration71.windows-support.php#120326

The biggest windows change is missing here.

You can now finally use UTF-8 and long paths under windows

See the notes here
https://github.com/php/php-src/blob/e33ec61f9c1baa73bfe1b03b8c48a824ab2a867e/UPGRADING#L418

kenjiuno avatar Apr 18 '17 04:04 kenjiuno

Thank you, php 7.1 does support unicode, but when I execute glob ('unicode_path'), I can not list the directory below, but scandir () can

esam-github avatar Apr 18 '17 16:04 esam-github

Thank you, php 7.1 does support unicode, but when I execute glob ('unicode_path'), I can not list the directory below, but scandir () can

Ok, if you are sure that it is a bug of php 7.1, you can report to https://bugs.php.net/

kenjiuno avatar Apr 20 '17 00:04 kenjiuno

Hello @kenjiuno .I installed your php-wfio package and it works great with files containing utf-8 characters. But unfortunately the glob() function is not supported. Can you do that with the glob() function? If possible, it is a great support. I use PHP version 5.6.38 on windows 7 64bit and I don't want to upgrade PHP to higher versions because I'm using a lot of my old projects. Look forward to your feedback!

Trieuvn91 avatar Jan 16 '19 08:01 Trieuvn91