Added version check for PHP 5.3 to convert cryptic error messages to understandable ones