Drop warn-if-enabled for asserts

I don't know why this is optional when no other debug warnings are.
This commit is contained in:
Dylan K. Taylor 2019-01-05 18:49:15 +00:00
parent 43410cdafb
commit 946a1036f1
2 changed files with 1 additions and 5 deletions

View File

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

View File

@ -96,10 +96,6 @@ network:
max-mtu-size: 1492
debug:
#To enable assertion execution, set zend.assertions in your php.ini to 1
assertions:
#Warn if assertions are enabled in php.ini, due to assertions may impact on runtime performance if enabled.
warn-if-enabled: true
#If > 1, it will show debug messages in the console
level: 1
#Enables /status, /gc