View Issue Details
ID | Project | Category | View Status | Date Submitted | Last Update |
---|---|---|---|---|---|
0010886 | mantisbt | tools | public | 2009-08-28 16:14 | 2009-10-07 14:19 |
Reporter | ha17 | Assigned To | dhx | ||
Priority | low | Severity | tweak | Reproducibility | N/A |
Status | closed | Resolution | fixed | ||
Product Version | 1.1.8 | ||||
Target Version | 1.2.0rc2 | Fixed in Version | 1.2.0rc2 | ||
Summary | 0010886: Use php_sapi_name to determine if script is running in CLI environment | ||||
Description | on line 36 it says: "# @@@ This is a hack to detect php-cgi, there must be a better way." if ( php_sapi_name () == 'cli' ) is a better way. | ||||
Additional Information | |||||
Tags | No tags attached. | ||||
MantisBT: master-1.2.x c8d2b5f9 2009-08-31 07:03 Details Diff |
Fix 0010886: 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. |
Affected Issues 0010886 |
|
mod - scripts/send_emails.php | Diff File | ||
mod - scripts/checkin.php | Diff File | ||
MantisBT: master 8a1f1d0a 2009-08-31 07:03 Details Diff |
Fix 0010886: 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. |
Affected Issues 0010886 |
|
mod - scripts/send_emails.php | Diff File | ||
mod - scripts/checkin.php | Diff File |