]> granicus.if.org Git - php/commitdiff
Fixed invalid read druing apache reload
authorXinchen Hui <laruence@php.net>
Thu, 4 Jun 2015 13:08:36 +0000 (21:08 +0800)
committerXinchen Hui <laruence@php.net>
Thu, 4 Jun 2015 13:08:36 +0000 (21:08 +0800)
ext/date/php_date.c

index 12d9ea779ff3f2d5678fb0a36819a49848a12708..5071e2eef0a2189532d7700bd183595592533d39 100644 (file)
@@ -877,6 +877,10 @@ PHP_MSHUTDOWN_FUNCTION(date)
                timelib_error_container_dtor(DATEG(last_errors));
        }
 
+#ifndef ZTS
+       DATEG(default_timezone) = NULL;
+#endif
+
        return SUCCESS;
 }
 /* }}} */