-
Notifications
You must be signed in to change notification settings - Fork 21
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
Fix the php executable to handle folder name with spaces #171
base: develop
Are you sure you want to change the base?
Fix the php executable to handle folder name with spaces #171
Conversation
@jrfnl I don't think this PR has the same problems as those two PRs. In one, the author was adding escaping around executable, and in another there was a whole new method for escaping the binary path. In this PR the only change is wrapping the executable in quotes so that the spaces in the paths are correctly handled. I don't have a windows based dev environment to test if this solution works there tho. |
@jrfnl I fixed the failed phpcs check, additional tests are passing, so I think this should be good to go. |
@dingo-d Thanks for that! I've just looked this over and these are my findings:
Back to the actual proposed change. This change is about the path to the PHP executable containing spaces. I'm not actually sure if this can be tested via the test suite easily. Then again, you might be able to test it by making a copy of the executable file and then adding a space in the file path or something. Or maybe by creating a symbolic link where the symbolic link has a space in the path ? Having said that, I think we may first need to have a good reproduction case anyhow as I haven't been able to make this fail on Windows in the first place (using the How I tested:
So, on Maybe some people who are having this problem can outline a reproduction scenario ? |
b0c432a
to
75bf94b
Compare
Rebased without changes to get a passing build after #174. |
@dingo-d Thank you for sharing your test results. I didn't realize it was about MacOS, not Windows. As the unit test doesn't really belong with this PR, do you want to move that contribution to a separate PR ? Note: it's not a blocker, but it will prevent confusion about what the test is testing if someone does a |
75bf94b
to
5003653
Compare
As reported in beyondcode/herd-community#631. Co-authored-by: Marcel Pociot <804684+mpociot@users.noreply.github.com>
5003653
to
db1fbdf
Compare
@jrfnl I've removed the tests (I made a separate branch for those tests so I'll make a separate PR for that), and rebased to one commit. Hope it's ok now 👍🏼 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks @dingo-d ! All good AFAICS.
As reported in beyondcode/herd-community#631.