protected static function OpcodeCache::isCli in Automatic Updates 7
Determine if PHP is running via CLI.
Return value
bool TRUE if CLI, FALSE otherwise.
1 call to OpcodeCache::isCli()
- OpcodeCache::run in ReadinessCheckers/
OpcodeCache.php - Run check.
File
- ReadinessCheckers/
OpcodeCache.php, line 25
Class
- OpcodeCache
- Error if opcode caching is enabled and updates are executed via CLI.
Code
protected static function isCli() {
return PHP_SAPI === 'cli';
}