derick Mon Oct 10 12:41:41 2005 EDT
Modified files:
/php-src/ext/date php_date.c
Log:
- Make sure the tzcache' dtor doesn't cleanup cached misses in the lookup
tables.
http://cvs.php.net/diff.php/php-src/ext/date/php_date.c?r1=1.60&r2=1.61&ty=u
Index: php-src/ext/date/php_date.c
diff -u php-src/ext/date/php_date.c:1.60 php-src/ext/date/php_date.c:1.61
--- php-src/ext/date/php_date.c:1.60 Fri Oct 7 16:31:57 2005
+++ php-src/ext/date/php_date.c Mon Oct 10 12:41:40 2005
@@ -16,7 +16,7 @@
+----------------------------------------------------------------------+
*/
-/* $Id: php_date.c,v 1.60 2005/10/07 20:31:57 derick Exp $ */
+/* $Id: php_date.c,v 1.61 2005/10/10 16:41:40 derick Exp $ */
#include "php.h"
#include "php_streams.h"
@@ -192,7 +192,9 @@
{
timelib_tzinfo **tzi = (timelib_tzinfo **)tzinfo;
- timelib_tzinfo_dtor(*tzi);
+ if (*tzi) {
+ timelib_tzinfo_dtor(*tzi);
+ }
}
/* {{{ PHP_RINIT_FUNCTION */
--
PHP CVS Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php