From: Ilia Alshanetsky Date: Mon, 3 Feb 2003 22:48:35 +0000 (+0000) Subject: MFH X-Git-Tag: php-4.3.2RC1~338 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=b6813a08982179e50ad1f9559e49b052be2d4ad0;p=php MFH --- diff --git a/ext/standard/datetime.c b/ext/standard/datetime.c index 260271590b..13b92322f0 100644 --- a/ext/standard/datetime.c +++ b/ext/standard/datetime.c @@ -286,6 +286,12 @@ php_date(INTERNAL_FUNCTION_PARAMETERS, int gm) } convert_to_long_ex(timestamp); the_time = Z_LVAL_PP(timestamp); +#ifdef PHP_WIN32 + if (the_time < 0) { + php_error_docref(NULL TSRMLS_CC, E_WARNING, "Windows does not support dates prior to midnight (00:00:00), January 1, 1970"); + RETURN_FALSE; + } +#endif break; default: WRONG_PARAM_COUNT;