Remove check for outdated APC version
authorTim Düsterhus <duesterhus@woltlab.com>
Tue, 19 May 2015 21:23:18 +0000 (23:23 +0200)
committerTim Düsterhus <duesterhus@woltlab.com>
Tue, 19 May 2015 21:23:18 +0000 (23:23 +0200)
APC 3.1.4 won’t even run on PHP 5.4, so it’s safe to remove
the check here.

wcfsetup/install/files/global.php

index 9dd5f21357b59b0652201e9c089c41549757f8e7..ce47830e8f912b1a269cd1edb9c8c6611d25278d 100644 (file)
@@ -15,11 +15,6 @@ if (!defined('PACKAGE_ID')) {
 // define the wcf-root-dir
 define('WCF_DIR', dirname(__FILE__).'/');
 
-// APC below 3.1.4 breaks PHP's late static binding
-if (extension_loaded('apc') && strnatcmp(phpversion('apc'), '3.1.4') < 0) {
-       apc_clear_cache('opcode');
-}
-
 // initiate wcf core
 require_once(WCF_DIR.'lib/system/WCF.class.php');
 new wcf\system\WCF();