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

Fix crontab for cross platform support. #3829

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

scottfalkingham
Copy link

This fixes crontab failing to recognize the existing cronjobs when running from Windows and connecting to a say a Linux server. It would lead to new existing sections not being found, and new ones being added each time it was run. This was due to trying to explode the crontab lines with PHP_EOL, as on a windows system, it would be looking for \r\n newlines in the crontab. However, the crontab was coming from a linux system, and the newlines would be \n.

This fix now looks for all types of newlines to split the crontab lines by.

  • Bug fix #…?

  • New feature?

  • BC breaks?

  • Tests added?

  • Docs added?

    Please, regenerate docs by running next command:
    $ php bin/docgen
    

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

Successfully merging this pull request may close these issues.

None yet

1 participant