You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Direction
We use github issues to track bugs, not for support.
If you have a support question, or a feature request, raise these as threads on our forum.
Describe the bug
I was trying to run CI4 through cli, and it didn't seem to be working... So after a long debugging session, I've found out that CI4 wasn't recognizing it as a cli execution, and the routing was failing because of this. The reason was, that if CI4 is called by crontab, the PHP_SAPI constant will return 'cgi-fcgi' instead of 'cli' which is checked against in Common.php fn is_cli()
CodeIgniter 4 version
4.1.1
Affected module(s)
Which package or class is the bug in, if known.
Expected behavior, and steps to reproduce if appropriate
Expected to work the same way, as when I run it from cli
Context
OS: CentOS 7
Web server Apache 2
PHP version 7.4
The text was updated successfully, but these errors were encountered:
pixobit
added
the
bug
Verified issues on the current code behavior or pull requests that will fix them
label
May 17, 2021
Direction
We use github issues to track bugs, not for support.
If you have a support question, or a feature request, raise these as threads on our
forum.
Describe the bug
I was trying to run CI4 through cli, and it didn't seem to be working... So after a long debugging session, I've found out that CI4 wasn't recognizing it as a cli execution, and the routing was failing because of this. The reason was, that if CI4 is called by crontab, the
PHP_SAPI
constant will return'cgi-fcgi'
instead of 'cli' which is checked against in Common.php fn is_cli()CodeIgniter 4 version
4.1.1
Affected module(s)
Which package or class is the bug in, if known.
Expected behavior, and steps to reproduce if appropriate
Expected to work the same way, as when I run it from cli
Context
The text was updated successfully, but these errors were encountered: