]> granicus.if.org Git - php/commitdiff
Don't forget to check for tzset...
authorWez Furlong <wez@php.net>
Wed, 15 Oct 2003 00:19:30 +0000 (00:19 +0000)
committerWez Furlong <wez@php.net>
Wed, 15 Oct 2003 00:19:30 +0000 (00:19 +0000)
ext/standard/basic_functions.c

index 04140dc74a150ea56590136eee0efb0a00f6f8b9..9f843d8e042fc4f1c173bb78ca9b11af2fe6c6d8 100644 (file)
@@ -950,11 +950,13 @@ static void php_putenv_destructor(putenv_entry *pe)
                }
 # endif
        }
+#ifdef HAVE_TZSET
        /* don't forget to reset the various libc globals that
         * we might have changed by an earlier call to tzset(). */
        if (!strncmp(pe->key, "TZ", pe->key_len)) {
                tzset();
        }
+#endif
                
        efree(pe->putenv_string);
        efree(pe->key);