diff options
author | Ilia Alshanetsky <iliaa@php.net> | 2004-02-09 04:04:24 +0000 |
---|---|---|
committer | Ilia Alshanetsky <iliaa@php.net> | 2004-02-09 04:04:24 +0000 |
commit | ec09b090f91e039c3060c6888663b5e0f9d5ea73 (patch) | |
tree | 55ba97e9a17d8c166457087f6b8f51e55a8844f8 /main | |
parent | 9d21d8202404088d25eaf6f724d43239b009161f (diff) | |
download | php-git-ec09b090f91e039c3060c6888663b5e0f9d5ea73.tar.gz |
Fixed bug #27175 (tzset() is not being called by PHP on startup).
Diffstat (limited to 'main')
-rw-r--r-- | main/main.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/main/main.c b/main/main.c index 7ea44cf285..1756813dd5 100644 --- a/main/main.c +++ b/main/main.c @@ -794,7 +794,7 @@ static void php_error_cb(int type, const char *error_filename, const uint error_ } /* 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 @@ 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) { |