Skip to content
On this page

SAPIUsage

Ensures the PHP_SAPI constant is used instead of php_sapi_name().

Scope

Generic.PHP.SAPIUsage

Description

The PHP_SAPI constant should be used instead of php_sapi_name().

Usage

xml
<rule ref="Generic.PHP.SAPIUsage"></rule>

Examples

No Examples Available

Please edit this page through Github to add examples.

Released under the MIT License.