protected function getPhpConstant($variable, $constant)
    {
        return $this->computeServerVariable($variable, function () use ($variable, $constant) {
            $value = $this->bash->runRaw('php -r "echo '.$constant.';"');
            $this->localStorage->set($this->getVariablePath($variable), $value);

            return $value ?: constant($constant);
        });
    }