diff options
| author | Sean DuBois <sean@siobud.com> | 2016-02-04 15:13:57 -0600 |
|---|---|---|
| committer | Anatol Belski <ab@php.net> | 2016-02-15 08:19:07 +0100 |
| commit | f31e0cd3345ab1d0b4a5f82a804b2a8868a307e1 (patch) | |
| tree | f14f9e9f6a488d84d259d27bc022e5bfd6e267b0 /ext/date/php_date.c | |
| parent | d0649a8441f6087a63d2aba0f4b9fe045ba29a1c (diff) | |
| download | php-git-f31e0cd3345ab1d0b4a5f82a804b2a8868a307e1.tar.gz | |
Fix bug #71525
timelib_time->timelib_rel_time is mutated by date_modify, and because it is never zero'ed out
it latters causes other date operations to fail (like date_date_set)
Diffstat (limited to 'ext/date/php_date.c')
| -rw-r--r-- | ext/date/php_date.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/ext/date/php_date.c b/ext/date/php_date.c index 2c548ae6f4..2fe78a0e69 100644 --- a/ext/date/php_date.c +++ b/ext/date/php_date.c @@ -3054,6 +3054,7 @@ static int php_date_modify(zval *object, char *modify, size_t modify_len) /* {{{ 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; } /* }}} */ |
