dmitry          Mon Apr  9 15:32:35 2007 UTC

  Modified files:              (Branch: PHP_5_2)
    /php-src/ext/com_dotnet     com_variant.c 
  Log:
  Fixed 64-bit issues
  
  
http://cvs.php.net/viewvc.cgi/php-src/ext/com_dotnet/com_variant.c?r1=1.11.2.2.2.5&r2=1.11.2.2.2.6&diff_format=u
Index: php-src/ext/com_dotnet/com_variant.c
diff -u php-src/ext/com_dotnet/com_variant.c:1.11.2.2.2.5 
php-src/ext/com_dotnet/com_variant.c:1.11.2.2.2.6
--- php-src/ext/com_dotnet/com_variant.c:1.11.2.2.2.5   Fri Feb  2 15:27:35 2007
+++ php-src/ext/com_dotnet/com_variant.c        Mon Apr  9 15:32:35 2007
@@ -16,7 +16,7 @@
    +----------------------------------------------------------------------+
  */
 
-/* $Id: com_variant.c,v 1.11.2.2.2.5 2007/02/02 15:27:35 wharmby Exp $ */
+/* $Id: com_variant.c,v 1.11.2.2.2.6 2007/04/09 15:32:35 dmitry Exp $ */
 
 #ifdef HAVE_CONFIG_H
 #include "config.h"
@@ -943,6 +943,7 @@
 PHP_FUNCTION(variant_date_from_timestamp)
 {
        long timestamp;
+       time_t ttstamp;
        SYSTEMTIME systime;
        struct tm *tmv;
        VARIANT res;
@@ -959,7 +960,8 @@
 
        VariantInit(&res);
        tzset();
-       tmv = localtime(&timestamp);
+       ttstamp = timestamp;
+       tmv = localtime(&ttstamp);
        memset(&systime, 0, sizeof(systime));
 
        systime.wDay = tmv->tm_mday;

-- 
PHP CVS Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to