cvs: php4 /ext/standard datetime.c
| From: | Ilia Alshanetsky | Date: | Thu, 19 Dec 2002 17:06:36 +0000 |
| Subject: | cvs: php4 /ext/standard datetime.c | ||
| Groups: | php.cvs | ||
| Request: | Send a blank email to php-cvs+get-17279@lists.php.net to get a copy of this message | ||
iliaa Thu Dec 19 12:06:36 2002 EDT
Modified files:
/php4/ext/standard datetime.c
Log:
Fixed bug #21098.
Index: php4/ext/standard/datetime.c
diff -u php4/ext/standard/datetime.c:1.97 php4/ext/standard/datetime.c:1.98
--- php4/ext/standard/datetime.c:1.97 Thu Dec 5 17:28:01 2002
+++ php4/ext/standard/datetime.c Thu Dec 19 12:06:36 2002
@@ -19,7 +19,7 @@
*/
-/* $Id: datetime.c,v 1.97 2002/12/05 22:28:01 iliaa Exp $ */
+/* $Id: datetime.c,v 1.98 2002/12/19 17:06:36 iliaa Exp $ */
#include "php.h"
@@ -196,7 +196,7 @@
t = mktime(ta);
#ifdef PHP_WIN32
- if (t < 0) {
+ if (t - chgsecs < 0) {
php_error_docref(NULL TSRMLS_CC, E_WARNING, "Windows does not support negative values for
this function");
RETURN_LONG(-1);
}