projects
/
GitHub
/
WoltLab
/
WCF.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
d631fa8
)
Use function_exists to check for disabled functions
author
Marcel Werk
<burntime@woltlab.com>
Fri, 31 Jan 2020 17:26:35 +0000
(18:26 +0100)
committer
Marcel Werk
<burntime@woltlab.com>
Fri, 31 Jan 2020 17:26:35 +0000
(18:26 +0100)
wcfsetup/test.php
patch
|
blob
|
blame
|
history
diff --git
a/wcfsetup/test.php
b/wcfsetup/test.php
index a2bf23784eb300d919f305b24b780e97c22a1ea3..394d4d68c570954f40273e448d5c2905b6d7abd1 100644
(file)
--- a/
wcfsetup/test.php
+++ b/
wcfsetup/test.php
@@
-354,8
+354,7
@@
function checkInstallFile() {
}
function checkOpcache() {
if (extension_loaded('Zend Opcache') && @ini_get('opcache.enable')) {
- $disabledFunctions = explode(',', @ini_get('disable_functions'));
- if (in_array('opcache_reset', $disabledFunctions) || in_array('opcache_invalidate', $disabledFunctions)) {
+ if (!function_exists('\opcache_reset') || !function_exists('\opcache_invalidate')) {
return false;
}
}