367ed3ce85
To let opcode caches optimize cached code, the `PHP_VERSION_ID` constant is used to detect the current PHP version instead of calling `version_compare()` with `PHP_VERSION`.
16 lines
386 B
Plaintext
16 lines
386 B
Plaintext
<?php
|
|
|
|
if (PHP_VERSION_ID >= 50400 && gc_enabled()) {
|
|
// Disabling Zend Garbage Collection to prevent segfaults with PHP5.4+
|
|
// https://bugs.php.net/bug.php?id=53976
|
|
gc_disable();
|
|
}
|
|
|
|
$loader = require_once __DIR__.'/vendor/autoload.php';
|
|
|
|
use Doctrine\Common\Annotations\AnnotationRegistry;
|
|
|
|
AnnotationRegistry::registerLoader(array($loader, 'loadClass'));
|
|
|
|
return $loader;
|