use global namespace for opcache functions to improve the usefulness of error messages
authorMarcel Werk <burntime@woltlab.com>
Fri, 31 Jan 2020 17:26:18 +0000 (18:26 +0100)
committerMarcel Werk <burntime@woltlab.com>
Fri, 31 Jan 2020 17:26:18 +0000 (18:26 +0100)
wcfsetup/install/files/lib/system/WCF.class.php

index 0e28b1aeb83da15315232304f232a5850eca57c2..7c33c39aa2f265cf6e0fae4b4c5b105a3c1b8d6a 100644 (file)
@@ -1001,10 +1001,10 @@ class WCF {
                
                if (self::$zendOpcacheEnabled) {
                        if (empty($script)) {
-                               opcache_reset();
+                               \opcache_reset();
                        }
                        else {
-                               opcache_invalidate($script, true);
+                               \opcache_invalidate($script, true);
                        }
                }
        }