]> granicus.if.org Git - php/commitdiff
MFH: Fixed bug #27175 (tzset() is not being called by PHP on startup).
authorIlia Alshanetsky <iliaa@php.net>
Mon, 9 Feb 2004 04:05:56 +0000 (04:05 +0000)
committerIlia Alshanetsky <iliaa@php.net>
Mon, 9 Feb 2004 04:05:56 +0000 (04:05 +0000)
main/main.c

index 1a00965e448098117b3b0c1f053a3171bcc3d443..9b53c530f6e08cd025eeb99f98782e36475b83a0 100644 (file)
@@ -1138,6 +1138,10 @@ int php_module_startup(sapi_module_struct *sf, zend_module_entry *additional_mod
        setlocale(LC_CTYPE, "");
 #endif
 
+#if HAVE_TZSET
+       tzset();
+#endif
+
 #if defined(PHP_WIN32) || (defined(NETWARE) && defined(USE_WINSOCK))
        /* start up winsock services */
        if (WSAStartup(wVersionRequested, &wsaData) != 0) {