<?php namespace xp;

if (version_compare(PHP_VERSION, '5.4.0', '<')) {
  trigger_error('This version of the XP Framework requires PHP 5.4.0+, have PHP '.PHP_VERSION, E_USER_ERROR);
  exit(0x3d);
}

$p= max(strrpos(__FILE__, DIRECTORY_SEPARATOR), strrpos(__FILE__, '?'));
require substr(__FILE__, 0, $p + 1).'lang.base.php';

\lang\ClassLoader::getDefault();
<?php namespace xp;

if (version_compare(PHP_VERSION, '5.4.0', '<')) {
  trigger_error('This version of the XP Framework requires PHP 5.4.0+, have PHP '.PHP_VERSION, E_USER_ERROR);
  exit(0x3d);
}

$p= max(strrpos(__FILE__, DIRECTORY_SEPARATOR), strrpos(__FILE__, '?'));
require_once substr(__FILE__, 0, $p + 1).'lang.base.php';

\lang\ClassLoader::getDefault();
Use require_once for lang.base.php - easing Composer integration
Use require_once for lang.base.php - easing Composer integration

# composer.pth
  vendor/autoload.php

# xp.ini
  use=vendor/xp-framework/core

  [runtime]
  date.timezone=Europe/Berlin

This way, we ensure bootstrapping occurs from the correct source
and that we can use XP runners as well as standalone PHP with a
`require("vendor/autoload.php") statement inside
