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;
--
PHP CVS Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php