summaryrefslogtreecommitdiff
path: root/ext/date/php_date.c
diff options
context:
space:
mode:
authorDerick Rethans <derick@php.net>2010-03-07 17:25:16 +0000
committerDerick Rethans <derick@php.net>2010-03-07 17:25:16 +0000
commit3cface60c88aea1e443b629da23d9913e9b7a09e (patch)
tree43e30fc3e908c5569ed3d141c77ac45f3ce36076 /ext/date/php_date.c
parent39a5cd563f3d2ab16a39b4bdc89cc12f9f1a0a06 (diff)
downloadphp-git-3cface60c88aea1e443b629da23d9913e9b7a09e.tar.gz
- Fixed bug #49059 (DateTime::diff() repeats previous sub() operation).
Diffstat (limited to 'ext/date/php_date.c')
-rw-r--r--ext/date/php_date.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/ext/date/php_date.c b/ext/date/php_date.c
index 40e75a6d66..955e91d86d 100644
--- a/ext/date/php_date.c
+++ b/ext/date/php_date.c
@@ -3009,6 +3009,8 @@ PHP_FUNCTION(date_sub)
timelib_update_ts(dateobj->time, NULL);
timelib_update_from_sse(dateobj->time);
+ dateobj->time->have_relative = 0;
+
RETURN_ZVAL(object, 1, 0);
}
/* }}} */