-
Notifications
You must be signed in to change notification settings - Fork 56
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
Doesn't work in windows. #71
Comments
Can you perform those operations in PHP? |
Quite possibly. Is definitely worth looking into. I'll probably have some time in the coming week to look. But if you are feeling up for it please feel free. |
I haven't had time to check into this. If anyone else feels like taking a stab at this please feel free. |
It's worth mentioning that the problem in the line comes from the command But there is another problem which is not related to Windows: churn-php/src/Commands/ChurnCommand.php Lines 142 to 143 in 60b09ed
The script runs forever if a process is terminated but not successful. |
Thanks @villfa , are you able to provide an example that makes the script run forever? |
You can enter an infinite loop by running churn on a folder containing a space character.
The command line returns an error because it is built without using escapeshellarg. |
To brush the dust off of this and provide value for Windows users, would you be willing to accept a PR that refactors https://github.com/bmitch/churn-php/blob/master/src/Factories/ProcessFactory.php#L34-L36 to a pure PHP implementation? |
@josephzidell yes that would be great! |
Regarding the escapeshellarg - you can supply parameters one-by-one as array with Symfony process. |
Because of this line:
https://github.com/bmitch/churn-php/blob/master/src/Factories/ProcessFactory.php#L35
Is there another command that will do the same thing that works in Windows and Unix?
The text was updated successfully, but these errors were encountered: