From: Derick Rethans Date: Mon, 10 Oct 2005 16:41:40 +0000 (+0000) Subject: - Make sure the tzcache' dtor doesn't cleanup cached misses in the lookup X-Git-Tag: RELEASE_0_9_1~158 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=d9a3cfd931ff9d0fa97b2ed8d435065d3ca52662;p=php - Make sure the tzcache' dtor doesn't cleanup cached misses in the lookup tables. --- diff --git a/ext/date/php_date.c b/ext/date/php_date.c index 6ed69160b5..32f2558889 100644 --- a/ext/date/php_date.c +++ b/ext/date/php_date.c @@ -192,7 +192,9 @@ static void _php_date_tzinfo_dtor(void *tzinfo) { timelib_tzinfo **tzi = (timelib_tzinfo **)tzinfo; - timelib_tzinfo_dtor(*tzi); + if (*tzi) { + timelib_tzinfo_dtor(*tzi); + } } /* {{{ PHP_RINIT_FUNCTION */