From: jwm at horde dot net
Operating system: Solaris 8
PHP version: 5.0.0RC1
PHP Bug Type: Compile Failure
Bug description: soap extension fails without HAVE_TM_GMTOFF
Description:
------------
The soap extension fails to build (undefined variables)
on Solaris 8 because the !HAVE_TM_GMTOFF case requires
tzone, which is not defined. This (perhaps naive) patch
fixes the build, but I haven't tested it:
--- ext/soap/php_encoding.c~ 2004-03-20 17:10:
22.646093000 -0500
+++ ext/soap/php_encoding.c 2004-03-20 17:10:
22.656085000 -0500
@@ -2119,6 +2119,7 @@
size_t buf_len=64, real_len;
char *buf;
char tzbuf[6];
+ long tzone;
xmlNodePtr xmlParam;
@@ -2130,7 +2131,13 @@
timestamp = Z_LVAL_P(data);
ta = php_localtime_r(×tamp,
&tmbuf);
/*ta = php_gmtime_r(×tamp, &tmbuf);
*/
-
+#if !HAVE_TM_GMTOFF
+#ifdef __CYGWIN__
+ tzone = _timezone;
+#else
+ tzone = timezone;
+#endif
+#endif
buf = (char *) emalloc(buf_len);
while ((real_len = strftime(buf,
buf_len, format, ta)) == buf_len || real_len == 0) {
buf_len *= 2;
--
Edit bug report at http://bugs.php.net/?id=27681&edit=1
--
Try a CVS snapshot (php4): http://bugs.php.net/fix.php?id=27681&r=trysnapshot4
Try a CVS snapshot (php5): http://bugs.php.net/fix.php?id=27681&r=trysnapshot5
Fixed in CVS: http://bugs.php.net/fix.php?id=27681&r=fixedcvs
Fixed in release: http://bugs.php.net/fix.php?id=27681&r=alreadyfixed
Need backtrace: http://bugs.php.net/fix.php?id=27681&r=needtrace
Need Reproduce Script: http://bugs.php.net/fix.php?id=27681&r=needscript
Try newer version: http://bugs.php.net/fix.php?id=27681&r=oldversion
Not developer issue: http://bugs.php.net/fix.php?id=27681&r=support
Expected behavior: http://bugs.php.net/fix.php?id=27681&r=notwrong
Not enough info: http://bugs.php.net/fix.php?id=27681&r=notenoughinfo
Submitted twice: http://bugs.php.net/fix.php?id=27681&r=submittedtwice
register_globals: http://bugs.php.net/fix.php?id=27681&r=globals
PHP 3 support discontinued: http://bugs.php.net/fix.php?id=27681&r=php3
Daylight Savings: http://bugs.php.net/fix.php?id=27681&r=dst
IIS Stability: http://bugs.php.net/fix.php?id=27681&r=isapi
Install GNU Sed: http://bugs.php.net/fix.php?id=27681&r=gnused
Floating point limitations: http://bugs.php.net/fix.php?id=27681&r=float