-
Notifications
You must be signed in to change notification settings - Fork 2.1k
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
cron.php calls occ system:cron as fallback #36221
Conversation
cron.php
Outdated
@@ -40,4 +40,8 @@ | |||
} | |||
|
|||
echo 'Please use ./occ system:cron' . PHP_EOL; | |||
exit(1); | |||
$return = system('./occ system:cron'); |
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.
this implies that PHP is allowed to call system functions
is there maybe another way where we instantiate it through Symfony like we do for unit tests ?
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.
this implies that PHP is allowed to call system functions
at this level where php scripts are called from crontab we can assume that we can call system functions.
Adding more complexity here by using symfony is an overkill from my perspective
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.
okay, so assuming that the php.ini for the cli is more permissive
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.
👍
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.
Could you push the changes?
ff5594e
to
a0d4c20
Compare
Codecov Report
@@ Coverage Diff @@
## release-10.3.0 #36221 +/- ##
===============================================
Coverage 54% 54%
===============================================
Files 63 63
Lines 7408 7408
Branches 1309 1309
===============================================
Hits 4001 4001
Misses 3021 3021
Partials 386 386
Continue to review full report at Codecov.
|
Description
cron.php calls the occ system:cron command as fallback
Types of changes
Checklist:
Open tasks: