Additionally silenced opcache status call
This commit is contained in:
1 parent
cf1b0157fa
commit
e6c172f762
1 file changed
+5
-1
@@ -37,7 +37,11 @@ class Core_Load_Collector implements Record_Collector_Interface {
|
||||
$php = 'PHP Load – ' . PHP_VERSION;
|
||||
|
||||
if ( $this->opcache_api_available() ) {
|
||||
$zend_status = opcache_get_status();
|
||||
/**
|
||||
* This is silenced since it might still emit warning for correct `opcache.resrict_api` configuration.
|
||||
* @see https://github.com/php/php-src/issues/8799
|
||||
*/
|
||||
$zend_status = @opcache_get_status();
|
||||
$php .= empty( $zend_status['opcache_enabled'] ) ? '' : ' – OPcache';
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user