kenjiuno / php-wfio

BSD 3-Clause "New" or "Revised" License
54 stars 6 forks source link

Will support glob? #12

Open esam-github opened 7 years ago

esam-github commented 7 years ago

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()?

hfhchan commented 7 years ago

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

kenjiuno commented 7 years ago

@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
esam-github commented 7 years ago

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

kenjiuno commented 7 years ago

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/

Trieuvn91 commented 5 years ago

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!