Dep: update
주로 PHAN
This commit is contained in:
+9
-3
@@ -33,6 +33,7 @@ class Status
|
||||
private $envAllowXdebug;
|
||||
private $loaded;
|
||||
private $logger;
|
||||
private $modeOff;
|
||||
private $time;
|
||||
|
||||
/**
|
||||
@@ -91,7 +92,12 @@ class Status
|
||||
|
||||
private function reportCheck($loaded)
|
||||
{
|
||||
$this->loaded = $loaded;
|
||||
list($version, $mode) = explode('|', $loaded);
|
||||
|
||||
if ($version) {
|
||||
$this->loaded = '('.$version.')'.($mode ? ' mode='.$mode : '');
|
||||
}
|
||||
$this->modeOff = $mode === 'off';
|
||||
$this->output('Checking '.$this->envAllowXdebug);
|
||||
}
|
||||
|
||||
@@ -112,7 +118,7 @@ class Status
|
||||
if ($this->loaded) {
|
||||
$text = sprintf('No restart (%s)', $this->getEnvAllow());
|
||||
if (!getenv($this->envAllowXdebug)) {
|
||||
$text .= ' Allowed by application';
|
||||
$text .= ' Allowed by '.($this->modeOff ? 'mode' : 'application');
|
||||
}
|
||||
$this->output($text);
|
||||
}
|
||||
@@ -157,7 +163,7 @@ class Status
|
||||
*/
|
||||
private function getLoadedMessage()
|
||||
{
|
||||
$loaded = $this->loaded ? sprintf('loaded (%s)', $this->loaded) : 'not loaded';
|
||||
$loaded = $this->loaded ? sprintf('loaded %s', $this->loaded) : 'not loaded';
|
||||
return 'The Xdebug extension is '.$loaded;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user