Search moodle.org's
Developer Documentation

See Release Notes

  • Bug fixes for general core bugs in 3.11.x will end 14 Nov 2022 (12 months plus 6 months extension).
  • Bug fixes for security issues in 3.11.x will end 13 Nov 2023 (18 months plus 12 months extension).
  • PHP version: minimum PHP 7.3.0 Note: minimum PHP version has increased since Moodle 3.10. PHP 7.4.x is supported too.
   1  <?php
   2  
   3  // autoload.php @generated by Composer
   4  
   5  if (PHP_VERSION_ID < 50600) {
   6      if (!headers_sent()) {
   7          header('HTTP/1.1 500 Internal Server Error');
   8      }
   9      $err = 'Composer 2.3.0 dropped support for autoloading on PHP <5.6 and you are running '.PHP_VERSION.', please upgrade PHP or use Composer 2.2 LTS via "composer self-update --2.2". Aborting.'.PHP_EOL;
  10      if (!ini_get('display_errors')) {
  11          if (PHP_SAPI === 'cli' || PHP_SAPI === 'phpdbg') {
  12              fwrite(STDERR, $err);
  13          } elseif (!headers_sent()) {
  14              echo $err;
  15          }
  16      }
  17      trigger_error(
  18          $err,
  19          E_USER_ERROR
  20      );
  21  }
  22  
  23  require_once  __DIR__ . '/composer/autoload_real.php';
  24  
  25  return ComposerAutoloaderInit8c729390e3f26f25c6e8fe4b9504a4d9::getLoader();