Projet

Général

Profil

Révision cd5c298a

Ajouté par Geoffroy Desvernay il y a environ 5 ans

MAJ 7.60 -> 7.62

Voir les différences:

drupal7/includes/bootstrap.inc
8 8
/**
9 9
 * The current system version.
10 10
 */
11
define('VERSION', '7.60');
11
define('VERSION', '7.63');
12 12

  
13 13
/**
14 14
 * Core API compatibility.
......
704 704
  // Set sane locale settings, to ensure consistent string, dates, times and
705 705
  // numbers handling.
706 706
  setlocale(LC_ALL, 'C');
707

  
708
  // PHP's built-in phar:// stream wrapper is not sufficiently secure. Override
709
  // it with a more secure one, which requires PHP 5.3.3. For lower versions,
710
  // unregister the built-in one without replacing it. Sites needing phar
711
  // support for lower PHP versions must implement hook_stream_wrappers() to
712
  // register their desired implementation.
713
  if (in_array('phar', stream_get_wrappers(), TRUE)) {
714
    stream_wrapper_unregister('phar');
715
    if (version_compare(PHP_VERSION, '5.3.3', '>=')) {
716
      include_once DRUPAL_ROOT . '/includes/file.phar.inc';
717
      file_register_phar_wrapper();
718
    }
719
  }
707 720
}
708 721

  
709 722
/**
......
3785 3798
  chdir(DRUPAL_ROOT);
3786 3799

  
3787 3800
  try {
3788
    while (list($key, $callback) = each($callbacks)) {
3801
    // Manually iterate over the array instead of using a foreach loop.
3802
    // A foreach operates on a copy of the array, so any shutdown functions that
3803
    // were added from other shutdown functions would never be called.
3804
    while ($callback = current($callbacks)) {
3789 3805
      call_user_func_array($callback['callback'], $callback['arguments']);
3806
      next($callbacks);
3790 3807
    }
3791 3808
  }
3792 3809
  catch (Exception $exception) {

Formats disponibles : Unified diff