public function PhpExtensions::__construct

File

drupal/core/vendor/doctrine/common/bin/travis-setup.php, line 43

Class

PhpExtensions

Code

public function __construct() {
  $this->phpVersion = phpversion();
  $this->iniPath = php_ini_loaded_file();
  $this->extensions = array(
    'memcache' => array(
      'url' => 'http://pecl.php.net/get/memcache-2.2.6.tgz',
      'php_version' => array(),
      'cfg' => array(
        '--enable-memcache',
      ),
      'ini' => array(
        'extension=memcache.so',
      ),
    ),
    'memcached' => array(
      'url' => 'http://pecl.php.net/get/memcached-1.0.2.tgz',
      'php_version' => array(
        // memcached 1.0.2 does not build on PHP 5.4
        array(
          '<',
          '5.4',
        ),
      ),
      'cfg' => array(),
      'ini' => array(
        'extension=memcached.so',
      ),
    ),
    'apc' => array(
      'url' => 'http://pecl.php.net/get/APC-3.1.9.tgz',
      'php_version' => array(
        // apc 3.1.9 causes a segfault on PHP 5.4
        array(
          '<',
          '5.4',
        ),
      ),
      'cfg' => array(),
      'ini' => array(
        'extension=apc.so',
        'apc.enabled=1',
        'apc.enable_cli=1',
      ),
    ),
    'xcache' => array(
      'url' => 'http://xcache.lighttpd.net/pub/Releases/1.2.2/xcache-1.2.2.tar.gz',
      'php_version' => array(
        // xcache does not build with Travis CI (as of 2012-01-09)
        array(
          '<',
          '5',
        ),
      ),
      'cfg' => array(
        '--enable-xcache',
      ),
      'ini' => array(
        'extension=xcache.so',
        'xcache.cacher=false',
        'xcache.admin.enable_auth=0',
        'xcache.var_size=1M',
      ),
    ),
  );
}