Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Will support glob? #12

Open
esam-github opened this issue Apr 17, 2017 · 5 comments
Open

Will support glob? #12

esam-github opened this issue Apr 17, 2017 · 5 comments

Comments

@esam-github
Copy link

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
Copy link

hfhchan commented Apr 17, 2017

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

@kenjiuno
Copy link
Owner

kenjiuno commented Apr 18, 2017

@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
Copy link
Author

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
Copy link
Owner

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
Copy link

Trieuvn91 commented Jan 16, 2019

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!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants