cvs: php4 /ext/standard datetime.c
| From: | Ilia Alshanetsky | Date: | Thu, 19 Sep 2002 18:22:52 +0000 |
| Subject: | cvs: php4 /ext/standard datetime.c | ||
| Groups: | php.cvs | ||
| Request: | Send a blank email to php-cvs+get-14099@lists.php.net to get a copy of this message | ||
iliaa Thu Sep 19 14:22:52 2002 EDT
Modified files:
/php4/ext/standard datetime.c
Log:
Fixed bug #19414
Index: php4/ext/standard/datetime.c
diff -u php4/ext/standard/datetime.c:1.93 php4/ext/standard/datetime.c:1.94
--- php4/ext/standard/datetime.c:1.93 Wed Sep 18 17:34:30 2002
+++ php4/ext/standard/datetime.c Thu Sep 19 14:22:51 2002
@@ -19,7 +19,7 @@
*/
-/* $Id: datetime.c,v 1.93 2002/09/18 21:34:30 iliaa Exp $ */
+/* $Id: datetime.c,v 1.94 2002/09/19 18:22:51 iliaa Exp $ */
#include "php.h"
@@ -194,9 +194,11 @@
}
t = mktime(ta);
- seconds = t - chgsecs;
-
+ if (t == -1) {
+ RETURN_LONG(-1);
+ }
+ seconds = t - chgsecs;
if (is_dst == -1) {
struct tm t1, t2;