PhpExtensions::_opcache PHP Method

_opcache() protected static method

protected static _opcache ( )
    protected static function _opcache()
    {
        if (static::_isHhvm()) {
            throw new RuntimeException("`opcache` cannot be used with HHVM.");
        }
        if (version_compare(PHP_VERSION, '5.5', '<')) {
            static::_pecl('zendopcache', 'beta');
            $pattern = '/home/travis/.phpenv/versions/';
            $pattern .= phpversion() . '/lib/php/extensions/*/opcache.so';
            $files = glob($pattern);
            static::_ini(array('zend_extension=' . array_pop($files)));
        }
        static::_ini(array('opcache.enable=1', 'opcache.enable_cli=1'));
    }