From: [EMAIL PROTECTED]
Operating system: NetWare
PHP version: 5.2.7RC2
PHP Bug Type: SOAP related
Bug description: NetWare needs small patch for _timezone
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 bug report at http://bugs.php.net/?id=46389&edit=1
--
Try a CVS snapshot (PHP 5.2):
http://bugs.php.net/fix.php?id=46389&r=trysnapshot52
Try a CVS snapshot (PHP 5.3):
http://bugs.php.net/fix.php?id=46389&r=trysnapshot53
Try a CVS snapshot (PHP 6.0):
http://bugs.php.net/fix.php?id=46389&r=trysnapshot60
Fixed in CVS:
http://bugs.php.net/fix.php?id=46389&r=fixedcvs
Fixed in CVS and need be documented:
http://bugs.php.net/fix.php?id=46389&r=needdocs
Fixed in release:
http://bugs.php.net/fix.php?id=46389&r=alreadyfixed
Need backtrace:
http://bugs.php.net/fix.php?id=46389&r=needtrace
Need Reproduce Script:
http://bugs.php.net/fix.php?id=46389&r=needscript
Try newer version:
http://bugs.php.net/fix.php?id=46389&r=oldversion
Not developer issue:
http://bugs.php.net/fix.php?id=46389&r=support
Expected behavior:
http://bugs.php.net/fix.php?id=46389&r=notwrong
Not enough info:
http://bugs.php.net/fix.php?id=46389&r=notenoughinfo
Submitted twice:
http://bugs.php.net/fix.php?id=46389&r=submittedtwice
register_globals:
http://bugs.php.net/fix.php?id=46389&r=globals
PHP 4 support discontinued: http://bugs.php.net/fix.php?id=46389&r=php4
Daylight Savings: http://bugs.php.net/fix.php?id=46389&r=dst
IIS Stability:
http://bugs.php.net/fix.php?id=46389&r=isapi
Install GNU Sed:
http://bugs.php.net/fix.php?id=46389&r=gnused
Floating point limitations:
http://bugs.php.net/fix.php?id=46389&r=float
No Zend Extensions:
http://bugs.php.net/fix.php?id=46389&r=nozend
MySQL Configuration Error:
http://bugs.php.net/fix.php?id=46389&r=mysqlcfg