Make your PHP 5.4+ codebase compatible with PHP 5.3.
Tool to downgrade your PHP codebase from PHP 5.4+ to PHP 5.3. Built on top of galapagos.
Consider including
php5.3-compatibility package
in your project, which includes JsonSerializable
and
SessionHandlerInterface
.
You may have to manually fix some remaining problems, usually they're quite simple.
Use it when you have a PHP 5.4+ codebase and just can't upgrade your client's infrastructure.
[1,2,3]
to array(1,2,3)
)composer.json
and convert them if it's neededstream_context_create
session_set_save_handler
./php-code-downgrade [path-to-downgrade]
Using custom node transformations:
./php-code-downgrade [path-to-downgrade] -t transformations/phalanger
MIT