]> granicus.if.org Git - php/commitdiff
Fixed bug #27681 (soap extension fails without HAVE_TM_GMTOFF).
authorDmitry Stogov <dmitry@php.net>
Thu, 15 Apr 2004 10:27:53 +0000 (10:27 +0000)
committerDmitry Stogov <dmitry@php.net>
Thu, 15 Apr 2004 10:27:53 +0000 (10:27 +0000)
NEWS
ext/soap/php_encoding.c

diff --git a/NEWS b/NEWS
index 9832ea5be309bc46fb62c5005c7162b494dc27f9..b892264347e3baf4012ef7183da0d99ec2df004b 100644 (file)
--- a/NEWS
+++ b/NEWS
@@ -21,6 +21,7 @@ PHP                                                                        NEWS
 - Fixed bug #27742 (WDSL SOAP Parsing Schema bug). (Dmitry)
 - Fixed bug #27722 (Segfault on schema without targetNamespace). (Dmitry)
 - Fixed bug #27719 (mktime issues on and around DST changeover). (Rasmus)
+- Fixed bug #27681 (soap extension fails without HAVE_TM_GMTOFF). (Dmitry)
 - Fixed bug #27641 (Object cloning in ze1_compatibility_mode was reimplemented)
   (Dmitry, Andi)
 - Fixed bug #27628 (Simplify the process of making a POST request via stream
index 0fd94bf0ce031d2c2d3f66cc8d575a4cc58bc19a..a9d41ef97c2f33a98d5ba47f21cf2c2788694708 100644 (file)
@@ -2152,10 +2152,10 @@ static xmlNodePtr to_xml_datetime_ex(encodeTypePtr type, zval *data, char *forma
 #ifdef HAVE_TM_GMTOFF
                sprintf(tzbuf, "%c%02d%02d", (ta->tm_gmtoff < 0) ? '-' : '+', abs(ta->tm_gmtoff / 3600), abs( (ta->tm_gmtoff % 3600) / 60 ));
 #else
-# ifdef ZEND_WIN32
-               sprintf(tzbuf, "%c%02d%02d", ((ta->tm_isdst ? timezone - 3600:timezone)>0)?'-':'+', abs((ta->tm_isdst ? timezone - 3600 : timezone) / 3600), abs(((ta->tm_isdst ? timezone - 3600 : timezone) % 3600) / 60));
+# ifdef __CYGWIN__
+               sprintf(tzbuf, "%c%02d%02d", ((ta->tm_isdst ? _timezone - 3600:_timezone)>0)?'-':'+', abs((ta->tm_isdst ? _timezone - 3600 : _timezone) / 3600), abs(((ta->tm_isdst ? _timezone - 3600 : _timezone) % 3600) / 60));
 # else
-               sprintf(tzbuf, "%c%02d%02d", ((ta->tm_isdst ? tzone - 3600:tzone)>0)?'-':'+', abs((ta->tm_isdst ? tzone - 3600 : tzone) / 3600), abs(((ta->tm_isdst ? tzone - 3600 : tzone) % 3600) / 60));
+               sprintf(tzbuf, "%c%02d%02d", ((ta->tm_isdst ? timezone - 3600:timezone)>0)?'-':'+', abs((ta->tm_isdst ? timezone - 3600 : timezone) / 3600), abs(((ta->tm_isdst ? timezone - 3600 : timezone) % 3600) / 60));
 # endif
 #endif
                if (strcmp(tzbuf,"+0000") == 0) {