Server: warn on assertions !== -1, closes #2640

This commit is contained in:
Dylan K. Taylor 2019-01-05 18:47:29 +00:00
parent a99e15012c
commit 43410cdafb

View File

@ -1551,7 +1551,7 @@ class Server{
return;
}
if(((int) ini_get('zend.assertions')) > 0 and ((bool) $this->getProperty("debug.assertions.warn-if-enabled", true)) !== false){
if(((int) ini_get('zend.assertions')) !== -1 and ((bool) $this->getProperty("debug.assertions.warn-if-enabled", true)) !== false){
$this->logger->warning("Debugging assertions are enabled, this may impact on performance. To disable them, set `zend.assertions = -1` in php.ini.");
}