PHP userland backwards compatibility layer that emulates PHP 5.5+ core functions.

⌈⌋ ⎇ branch:  upgrade.php


Artifact [9f732d7f83]

Artifact 9f732d7f8332a8633efa7a7429d41054afaef1ba:

  • File ext/contrib/register_long_arrays.php — part of check-in [e7ae0ea4ba] at 2012-02-16 21:14:27 on branch trunk — Maps short $_SERVER vars onto $HTTP_WHATEVER_VARS for older scripts. (user: mario size: 372)

<?php
/**
 *
 * Manual register_long_arrays workaround to keep older scripts
 * running. Contributed by Pavel Titov.
 *
 */

if (!isset($HTTP_SERVER_VARS)) {
  $HTTP_SERVER_VARS = $_SERVER;
  $HTTP_POST_VARS = $_POST;
  $HTTP_ENV_VARS = $_ENV;
  $HTTP_GET_VARS = $_GET;
  $HTTP_COOKIE_VARS = $_COOKIES;
  $HTTP_SESSION_VARS = $_SESSION;
  $HTTP_POST_FILES = $_FILES;
}

?>