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

⌈⌋ branch:  upgrade.php


Check-in [e7ae0ea4ba]

Many hyperlinks are disabled.
Use anonymous login to enable hyperlinks.

Overview
Comment:Maps short $_SERVER vars onto $HTTP_WHATEVER_VARS for older scripts.
Timelines: family | ancestors | descendants | both | trunk
Files: files | file ages | folders
SHA1: e7ae0ea4ba8e85ca7f6eb32175ab007bccb6dd79
User & Date: mario 2012-02-16 21:14:27
Context
2012-08-16
00:05
Workaround for .prefixed version having code blocks trailing } stripped on !defined() blocks check-in: 101b00995c user: mario tags: trunk
2012-02-16
21:14
Maps short $_SERVER vars onto $HTTP_WHATEVER_VARS for older scripts. check-in: e7ae0ea4ba user: mario tags: trunk
2012-01-26
14:49
http_response_code, http_redirect, http_send_content_type, zlib_decode, zlib_encode, session_status check-in: 2e9586cd8e user: mario tags: trunk
Changes
Hide Diffs Unified Diffs Ignore Whitespace Patch

Added ext/contrib/register_long_arrays.php.





































>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
<?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;
}

?>