Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix #10886: Use more robust method of determining php-cgi
Use the php_sapi_name function to check if the script is being executed from the command line. This is more robust than checking if the server port variable is defined by PHP. Thanks to ha17 for this suggestion.
- Loading branch information
1 parent
7b794df
commit 8a1f1d0
Showing
2 changed files
with
2 additions
and
4 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
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