-
-
Notifications
You must be signed in to change notification settings - Fork 453
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Improve calling context checks on cli.php (#694)
This commit uses php_sapi_name() against a definite value, rather than relying on the absense of various superglobals to determine CLI context. If HTTP is detected, a 404 is issued. It also adds some additional CLI error outputs, and exit codes for basic invocation. Co-authored-by: Rich Lott / Artful Robot <forums@artfulrobot.uk>
- Loading branch information
1 parent
758ee5c
commit 2170d3d
Showing
1 changed file
with
32 additions
and
24 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters