]> granicus.if.org Git - php/commitdiff
- Make sure the tzcache' dtor doesn't cleanup cached misses in the lookup
authorDerick Rethans <derick@php.net>
Mon, 10 Oct 2005 16:41:40 +0000 (16:41 +0000)
committerDerick Rethans <derick@php.net>
Mon, 10 Oct 2005 16:41:40 +0000 (16:41 +0000)
  tables.

ext/date/php_date.c

index 6ed69160b592711d588a8415db09c17184900a74..32f255888917f20a53a3043e689f95d57443c9d5 100644 (file)
@@ -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 */