Skip to content

Commit e206a49

Browse files
committed
supress warnings in opcache_reset() fixes dokuwiki#4375
If opcache is enabled, but access to it's API is restricted a warning is shown when we call opcache_reset(). Since we don't know if it's restricted, we have to supress the warning
1 parent efd15b3 commit e206a49

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/plugins/extension/Installer.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -361,7 +361,7 @@ public static function purgeCache()
361361
@touch(reset($config_cascade['main']['local']));
362362

363363
if (function_exists('opcache_reset')) {
364-
opcache_reset();
364+
@opcache_reset();
365365
}
366366
}
367367

0 commit comments

Comments
 (0)