peppeocchi / php-cron-scheduler

PHP cron job scheduler
MIT License
808 stars 143 forks source link

Fixing Scheduler on Windows w/ Spaces in PHP_BINARY Path #130

Open AndyM84 opened 2 years ago

AndyM84 commented 2 years ago

Adding some code to catch if running on Windows and the PHP_BINARY path includes spaces. Adds double quotes around the value of $bin so it can run without issues.

Tested as working on Windows 10 with PHP 7.4 and 8.0.

I believe this should also address #129.