-
-
Notifications
You must be signed in to change notification settings - Fork 53
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
Slashing on Windows for Zip issue #47
Comments
I see your point. The documentation for realpath() says:
I'd imagine the same normalisation as used above in the code would be required:
|
I am writing just now, because i have this issue again. I could solve it with.
Just use the PHP Constant for each '/' inside the zip function. |
Yes, it would definitely be better to use DIRECTORY_SEPARATOR rather than str_replace all over the place. |
Even better would be to use the getSubPathName() method of the RecursiveDirectoryIterator to avoid string manipulation to get the relative path. I've rewritten the method using this approach. Could you check that it works for you? |
Hey, just wanted to let you know that i found an issue for windows.
PassFactory seems to have a problem in the zip() function at Line 362 where the slashes for UNIX are brought in the right direction. But for Windows this causes an issue.
So i added $file = str_replace('', '/', $file); directly after this line, to solve this issue.
Im not sure how to add a pull request. So this is how im letting you know.
The text was updated successfully, but these errors were encountered: