]> granicus.if.org Git - php/commitdiff
Fix Win32 compilation. Hillarious April 1st joke!
authorZeev Suraski <zeev@php.net>
Wed, 19 Apr 2000 23:46:26 +0000 (23:46 +0000)
committerZeev Suraski <zeev@php.net>
Wed, 19 Apr 2000 23:46:26 +0000 (23:46 +0000)
ext/standard/info.c

index 838fe554870f97d8652c637876143d51026f5305..d8e2eafbb1828c25eb8931d006abc614e4e5b3b7 100644 (file)
@@ -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