ViaPHPCompat

This PHP library allows backwards-compatibility as well as security-increasing for PHP 4 - 6.

There are 2 possible scenarios:

  1. It can be used on unsecure systems to make them a bit more secure (e.g. simulate disabled register_globals)
  2. It can be used on secure systems to allow old scripts to run proper (e.g. simulating enabled register_globals)

Source (WIP)

Current version: Work in progress

Demo

We have set up 2 environments to test:

  "Old" system "Modern" system
safe_mode Off On
register_globals On Off
register_long_arrays On Off
magic_quotes_gpc On Off
magic_quotes_sybase On Off
auto-globals-jit On On
Scenario Run a modern script with increased security Run an old script in compatibility mode