cvs: php4(PHP_4_3) /ext/standard datetime.c

From: Date: Mon, 03 Feb 2003 22:48:36 +0000
Subject: cvs: php4(PHP_4_3) /ext/standard datetime.c
Groups: php.cvs 
Request: Send a blank email to php-cvs+get-18423@lists.php.net to get a copy of this message
iliaa Mon Feb 3 17:48:36 2003 EDT Modified files: (Branch: PHP_4_3) /php4/ext/standard datetime.c Log: MFH Index: php4/ext/standard/datetime.c diff -u php4/ext/standard/datetime.c:1.96.2.3 php4/ext/standard/datetime.c:1.96.2.4 --- php4/ext/standard/datetime.c:1.96.2.3 Tue Dec 31 11:35:26 2002 +++ php4/ext/standard/datetime.c Mon Feb 3 17:48:35 2003 @@ -19,7 +19,7 @@ */ -/* $Id: datetime.c,v 1.96.2.3 2002/12/31 16:35:26 sebastian Exp $ */ +/* $Id: datetime.c,v 1.96.2.4 2003/02/03 22:48:35 iliaa Exp $ */ #include "php.h" @@ -286,6 +286,12 @@ } 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;

« previous php.cvs (#18423) next »