diff options
author | Zeev Suraski <zeev@php.net> | 2000-04-19 23:46:26 +0000 |
---|---|---|
committer | Zeev Suraski <zeev@php.net> | 2000-04-19 23:46:26 +0000 |
commit | ac8e7b96f4566c7240145cfc146acd3b9538b01c (patch) | |
tree | f9a0d44eaf33077d00b6d4df1fdc9ebcb88469ce | |
parent | 7ecf70047b3deed47d13f0406fe8e18e2463e66a (diff) | |
download | php-git-ac8e7b96f4566c7240145cfc146acd3b9538b01c.tar.gz |
Fix Win32 compilation. Hillarious April 1st joke!
-rw-r--r-- | ext/standard/info.c | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/ext/standard/info.c b/ext/standard/info.c index 838fe55487..d8e2eafbb1 100644 --- a/ext/standard/info.c +++ b/ext/standard/info.c @@ -123,13 +123,8 @@ PHPAPI void php_print_info(int flag) char **env,*tmp1,*tmp2; char *php_uname; int expose_php = INI_INT("expose_php"); - time_t the_time; struct tm *ta, tmbuf; - - the_time = time(NULL); - ta = localtime_r(&the_time, &tmbuf); - #ifdef PHP_WIN32 char php_windows_uname[256]; DWORD dwBuild=0; @@ -140,6 +135,8 @@ PHPAPI void php_print_info(int flag) ELS_FETCH(); SLS_FETCH(); + the_time = time(NULL); + ta = localtime_r(&the_time, &tmbuf); if (flag & PHP_INFO_GENERAL) { #ifdef PHP_WIN32 |