From 25e8f839d561eff4286251f337f8d9122ec809e5 Mon Sep 17 00:00:00 2001 From: Derick Rethans Date: Tue, 30 Jun 2009 16:18:34 +0000 Subject: [PATCH] - MFH: Fixed bug #47351 (Memory leak in DateTime). --- NEWS | 1 + ext/date/php_date.c | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/NEWS b/NEWS index 3601d51a07..28b30fd036 100644 --- a/NEWS +++ b/NEWS @@ -22,6 +22,7 @@ PHP NEWS - Fixed bug #48450 (Compile failure under IRIX 6.5.30 building gd.c). (Kalle) - Fixed bug #48276 (date("Y") on big endian machines produces the wrong result). (Scott) +- Fixed bug #47351 (Memory leak in DateTime). (Derick, Tobias John) 17 Jun 2009, PHP 5.2.10 - Updated timezone database to version 2009.9 (2009i) (Derick) diff --git a/ext/date/php_date.c b/ext/date/php_date.c index 50f95645cf..947d80a09b 100644 --- a/ext/date/php_date.c +++ b/ext/date/php_date.c @@ -1752,7 +1752,7 @@ static int date_initialize(php_date_obj *dateobj, /*const*/ char *time_str, int } timelib_unixtime2local(now, (timelib_sll) time(NULL)); - timelib_fill_holes(dateobj->time, now, 0); + timelib_fill_holes(dateobj->time, now, TIMELIB_NO_CLONE); timelib_update_ts(dateobj->time, tzi); dateobj->time->have_weekday_relative = dateobj->time->have_relative = 0; -- 2.40.0