summaryrefslogtreecommitdiff
path: root/ext/date/php_date.c
diff options
context:
space:
mode:
authorAnatol Belski <ab@php.net>2016-02-15 15:14:23 +0100
committerAnatol Belski <ab@php.net>2016-02-15 15:14:23 +0100
commit633fb2d0e856243ed459cfe67a93c31352045c08 (patch)
treed456f5f76e55f7ac0b4e62bb0132023f6e4ca9bf /ext/date/php_date.c
parentc11b23c46577e30e1e0a7c0abfb4c7ea735c34e1 (diff)
downloadphp-git-633fb2d0e856243ed459cfe67a93c31352045c08.tar.gz
Backported fix for bug #71525
Diffstat (limited to 'ext/date/php_date.c')
-rw-r--r--ext/date/php_date.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/ext/date/php_date.c b/ext/date/php_date.c
index d5d06f6b27..e06ace7f8b 100644
--- a/ext/date/php_date.c
+++ b/ext/date/php_date.c
@@ -3143,6 +3143,7 @@ static int php_date_modify(zval *object, char *modify, int modify_len TSRMLS_DC)
timelib_update_ts(dateobj->time, NULL);
timelib_update_from_sse(dateobj->time);
dateobj->time->have_relative = 0;
+ memset(&dateobj->time->relative, 0, sizeof(dateobj->time->relative));
return 1;
}