From: Derick Rethans Date: Tue, 30 Jun 2009 16:18:34 +0000 (+0000) Subject: - MFH: Fixed bug #47351 (Memory leak in DateTime). X-Git-Tag: php-5.2.11RC1~219 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=25e8f839d561eff4286251f337f8d9122ec809e5;p=php - MFH: Fixed bug #47351 (Memory leak in DateTime). --- 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;