Alter code that deals with PHP 5.3.1-5.3.9 support