Fix an issue with PHP versions earlier than 5.3