mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-04-20 16:00:20 +00:00
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:
parent
43410cdafb
commit
946a1036f1
@ -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.");
|
||||
}
|
||||
|
||||
|
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user