YiiRequirementChecker::checkPhpIniOn PHP Method

checkPhpIniOn() public method

Checks if PHP configuration option (from php.ini) is on.
public checkPhpIniOn ( string $name ) : boolean
$name string configuration option name.
return boolean option is on.
    function checkPhpIniOn($name)
    {
        $value = ini_get($name);
        if (empty($value)) {
            return false;
        }
        return (int) $value === 1 || strtolower($value) === 'on';
    }