diff options
author | Andreas Gohr <andi@splitbrain.org> | 2025-04-10 14:08:17 +0200 |
---|---|---|
committer | Andreas Gohr <andi@splitbrain.org> | 2025-04-10 14:08:17 +0200 |
commit | e206a495af8c2e0a4ca026b731408424b45be0e3 (patch) | |
tree | 677aa6d2cc800c2c9e59fcb8a16dcefce86d61d9 | |
parent | efd15b3e952d8e24a13b4e3cd0849f379dc17d6a (diff) | |
download | dokuwiki-e206a495af8c2e0a4ca026b731408424b45be0e3.tar.gz dokuwiki-e206a495af8c2e0a4ca026b731408424b45be0e3.zip |
supress warnings in opcache_reset() fixes #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
-rw-r--r-- | lib/plugins/extension/Installer.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/plugins/extension/Installer.php b/lib/plugins/extension/Installer.php index 9307b57d0..e08f1da52 100644 --- a/lib/plugins/extension/Installer.php +++ b/lib/plugins/extension/Installer.php @@ -361,7 +361,7 @@ class Installer @touch(reset($config_cascade['main']['local'])); if (function_exists('opcache_reset')) { - opcache_reset(); + @opcache_reset(); } } |