]> granicus.if.org Git - php/commitdiff
- MFH: Fixed bug #47351 (Memory leak in DateTime).
authorDerick Rethans <derick@php.net>
Tue, 30 Jun 2009 16:18:34 +0000 (16:18 +0000)
committerDerick Rethans <derick@php.net>
Tue, 30 Jun 2009 16:18:34 +0000 (16:18 +0000)
NEWS
ext/date/php_date.c

diff --git a/NEWS b/NEWS
index 3601d51a07fef89a5c10ea45b1d91c50a0d7168a..28b30fd036b2a02c214c9d65815be65c821a4888 100644 (file)
--- 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)
index 50f95645cfbbb888c80346c3a17f132fc23f1505..947d80a09b36358ea00f63d391d6a37174733017 100644 (file)
@@ -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;