|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2004-04-07 11:16 UTC] sniper@php.net
[2004-04-15 06:30 UTC] dmitry@php.net
[2004-04-15 16:14 UTC] jwm at horde dot net
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Thu Oct 30 22:00:01 2025 UTC |
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;