EC-CUBE /
ec-cube
These results are based on our legacy PHP analysis, consider migrating to our new PHP analysis engine instead. Learn more
| 1 | <?php |
||
| 2 | |||
| 3 | // システム要件チェック |
||
| 4 | if (version_compare(PHP_VERSION, '5.3.9') < 0) { |
||
| 5 | die('Your PHP installation is too old. EC-CUBE requires at least PHP 5.3.9. See the <a href="http://www.ec-cube.net/product/system.php">system requirements</a> page for more information.'); |
||
| 6 | } |
||
| 7 | |||
| 8 | if (extension_loaded('wincache')) { |
||
| 9 | if (!ini_get('opcache.enable')) { |
||
| 10 | ini_set('wincache.ocenabled', 1); |
||
| 11 | } |
||
| 12 | ini_set('wincache.fcenabled', 1); |
||
| 13 | } |
||
| 14 | |||
| 15 | if (file_exists(__DIR__.'/vendor.phar')) { |
||
| 16 | $loader = require __DIR__.'/vendor.phar'; |
||
| 17 | } elseif (file_exists(__DIR__.'/vendor/autoload.php')) { |
||
| 18 | $loader = require __DIR__.'/vendor/autoload.php'; |
||
| 19 | } else { |
||
| 20 | die('Composer is not installed.'); |
||
| 21 | } |
||
| 22 | $loader->addPsr4('Plugin\\', __DIR__ . '/app/Plugin'); |
||
|
0 ignored issues
–
show
Coding Style
introduced
by
Loading history...
|
|||
| 23 | |||
| 24 | // autoloader cache |
||
| 25 | if (extension_loaded('apc') && ini_get('apc.enabled')) { |
||
| 26 | $apcLoader = new Symfony\Component\ClassLoader\ApcClassLoader(sha1(__FILE__), $loader); |
||
| 27 | $apcLoader->register(); |
||
| 28 | $loader->unregister(); |
||
| 29 | } elseif (extension_loaded('wincache') && ini_get('wincache.fcenabled')) { |
||
| 30 | $winCacheLoader = new Symfony\Component\ClassLoader\WinCacheClassLoader(sha1(__FILE__), $loader); |
||
| 31 | $winCacheLoader->register(); |
||
| 32 | $loader->unregister(); |
||
| 33 | } |
||
| 34 | |||
| 35 | return $loader; |
||
| 36 |