Skip to content

Commit

Permalink
Merge pull request #9670 from danog/improve_opcache
Browse files Browse the repository at this point in the history
Avoid verbose opcache logging
  • Loading branch information
orklah authored Apr 19, 2023
2 parents 958eb5a + 558239e commit 51d14a2
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/Psalm/Internal/Fork/PsalmRestarter.php
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@ class PsalmRestarter extends XdebugHandler
'jit_buffer_size' => 512 * 1024 * 1024,
'optimization_level' => '0x7FFEBFFF',
'preload' => '',
'log_verbosity_level' => 0,
];

private bool $required = false;
Expand Down Expand Up @@ -70,6 +71,7 @@ protected function requiresRestart($default): bool
$opcache_settings = [
'enable_cli' => in_array(ini_get('opcache.enable_cli'), ['1', 'true', true, 1]),
'jit' => (int) ini_get('opcache.jit'),
'log_verbosity_level' => (int) ini_get('opcache.log_verbosity_level'),
'optimization_level' => (string) ini_get('opcache.optimization_level'),
'preload' => (string) ini_get('opcache.preload'),
'jit_buffer_size' => self::toBytes(ini_get('opcache.jit_buffer_size')),
Expand Down Expand Up @@ -146,6 +148,7 @@ protected function restart($command): void
'-dopcache.jit=1205',
'-dopcache.optimization_level=0x7FFEBFFF',
'-dopcache.preload=',
'-dopcache.log_verbosity_level=0',
];
}

Expand Down

0 comments on commit 51d14a2

Please sign in to comment.