Changes required to make Symfony 1.0 work with PHP 5.5.x

Allow to use Symfony 1.0 with PHP 5.5.x (tested with 5.5.15).