derick          Mon Oct 10 12:42:32 2005 EDT

  Modified files:              (Branch: PHP_5_1)
    /php-src/ext/date   php_date.c 
  Log:
  - MFH: 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.43.2.14&r2=1.43.2.15&ty=u
Index: php-src/ext/date/php_date.c
diff -u php-src/ext/date/php_date.c:1.43.2.14 
php-src/ext/date/php_date.c:1.43.2.15
--- php-src/ext/date/php_date.c:1.43.2.14       Fri Oct  7 16:32:17 2005
+++ php-src/ext/date/php_date.c Mon Oct 10 12:42:32 2005
@@ -16,7 +16,7 @@
    +----------------------------------------------------------------------+
  */
 
-/* $Id: php_date.c,v 1.43.2.14 2005/10/07 20:32:17 derick Exp $ */
+/* $Id: php_date.c,v 1.43.2.15 2005/10/10 16:42:32 derick Exp $ */
 
 #include "php.h"
 #include "php_streams.h"
@@ -190,7 +190,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

Reply via email to