iliaa Sun Feb 8 23:04:25 2004 EDT
Modified files:
/php-src/main main.c
Log:
Fixed bug #27175 (tzset() is not being called by PHP on startup).
http://cvs.php.net/diff.php/php-src/main/main.c?r1=1.587&r2=1.588&ty=u
Index: php-src/main/main.c
diff -u php-src/main/main.c:1.587 php-src/main/main.c:1.588
--- php-src/main/main.c:1.587 Wed Jan 28 19:08:21 2004
+++ php-src/main/main.c Sun Feb 8 23:04:24 2004
@@ -18,7 +18,7 @@
+----------------------------------------------------------------------+
*/
-/* $Id: main.c,v 1.587 2004/01/29 00:08:21 pollita Exp $ */
+/* $Id: main.c,v 1.588 2004/02/09 04:04:24 iliaa Exp $ */
/* {{{ includes
*/
@@ -794,7 +794,7 @@
}
/* no break - intentionally */
case E_ERROR:
- /*case E_PARSE: the parser would return 1 (failure), we can bail out
nicely */
+ /* case E_PARSE: the parser would return 1 (failure), we can bail out
nicely */
case E_COMPILE_ERROR:
case E_USER_ERROR:
EG(exit_status) = 255;
@@ -1386,6 +1386,10 @@
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) {
--
PHP CVS Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php