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 | $autoload = __DIR__.'/vendor/autoload.php'; |
||
16 | |||
17 | if (file_exists($autoload) && is_readable($autoload)) { |
||
18 | $loader = require $autoload; |
||
19 | \Doctrine\Common\Annotations\AnnotationRegistry::registerLoader([$loader, 'loadClass']); |
||
0 ignored issues
–
show
|
|||
20 | } else { |
||
21 | die('Composer is not installed.'); |
||
22 | } |
||
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 | $loader = $apcLoader; |
||
30 | } elseif (extension_loaded('wincache') && ini_get('wincache.fcenabled')) { |
||
31 | $winCacheLoader = new Symfony\Component\ClassLoader\WinCacheClassLoader(sha1(__FILE__), $loader); |
||
32 | $winCacheLoader->register(); |
||
33 | $loader->unregister(); |
||
34 | $loader = $winCacheLoader; |
||
35 | } |
||
36 | |||
37 | define("RELATIVE_PUBLIC_DIR_PATH", '/html'); |
||
38 | |||
39 | return $loader; |
||
40 |
This method has been deprecated. The supplier of the class has supplied an explanatory message.
The explanatory message should give you some clue as to whether and when the method will be removed from the class and what other method or class to use instead.