wez             Tue Oct 14 20:19:31 2003 EDT

  Modified files:              (Branch: PHP_4_3)
    /php-src/ext/standard       basic_functions.c 
  Log:
  Don't forget to check for tzset...
  
  
Index: php-src/ext/standard/basic_functions.c
diff -u php-src/ext/standard/basic_functions.c:1.543.2.23 
php-src/ext/standard/basic_functions.c:1.543.2.24
--- php-src/ext/standard/basic_functions.c:1.543.2.23   Tue Oct 14 20:14:37 2003
+++ php-src/ext/standard/basic_functions.c      Tue Oct 14 20:19:30 2003
@@ -17,7 +17,7 @@
    +----------------------------------------------------------------------+
  */
 
-/* $Id: basic_functions.c,v 1.543.2.23 2003/10/15 00:14:37 wez Exp $ */
+/* $Id: basic_functions.c,v 1.543.2.24 2003/10/15 00:19:30 wez Exp $ */
 
 #include "php.h"
 #include "php_streams.h"
@@ -950,11 +950,13 @@
                }
 # 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);

-- 
PHP CVS Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to