Added support for large integers in PHP, error handling for dates beyond max inc