Fix Up to PHP 5.4.9