#46389 [Opn->Csd]: NetWare needs small patch for _timezone

From: Date: Sun, 26 Oct 2008 02:01:36 +0000
Subject: #46389 [Opn->Csd]: NetWare needs small patch for _timezone
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-130115@lists.php.net to get a copy of this message
ID: 46389 Updated by: felipe@php.net Reported By: guenter@php.net -Status: Open +Status: Closed Bug Type: SOAP related Operating System: NetWare PHP Version: 5.2.7RC2 New Comment: This bug has been fixed in CVS. Snapshots of the sources are packaged every three hours; this change will be in the next snapshot. You can grab the snapshot at http://snaps.php.net/. Thank you for the report, and for helping us make PHP better. Previous Comments: ------------------------------------------------------------------------ [2008-10-26 01:05:42] guenter@php.net Description: ------------ NetWare has _timezone instead of timezone in the headers: --- php_encoding.c.orig Thu Oct 16 17:49:18 2008 +++ php_encoding.c Sun Oct 26 02:35:48 2008 @@ -2876,7 +2876,7 @@ #ifdef HAVE_TM_GMTOFF snprintf(tzbuf, sizeof(tzbuf), "%c%02d:%02d", (ta->tm_gmtoff < 0) ? '-' : '+', abs(ta->tm_gmtoff / 3600), abs( (ta->tm_gmtoff % 3600) / 60 )); #else -# ifdef __CYGWIN__ +# if defined(__CYGWIN__) || defined(NETWARE) snprintf(tzbuf, sizeof(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 snprintf(tzbuf, sizeof(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)); can you please apply this small patch? thanks. ------------------------------------------------------------------------ -- Edit this bug report at http://bugs.php.net/?id=46389&edit=1

« previous php.bugs (#130115) next »