PHP 4.0 Bug #9380 Updated: HAVE_TZNAME not being checked

From: Date: Sat, 24 Feb 2001 21:20:46 +0000
Subject: PHP 4.0 Bug #9380 Updated: HAVE_TZNAME not being checked
Groups: php.dev 
Request: Send a blank email to php-dev+get-47422@lists.php.net to get a copy of this message
ID: 9380 Updated by: sas Reported By: amra@us.ibm.com Old-Status: Open Status: Closed Bug Type: Compile Failure Assigned To: Comments: Thanks, fixed in CVS. Previous Comments: --------------------------------------------------------------------------- [2001-02-21 14:22:35] amra@us.ibm.com OS/400 does not have tzname. Code in ext/standard/datetime.c does not check to see if HAVE_TZNAME is defined before accessing the field. Here is the code: #if HAVE_TM_ZONE size += strlen(ta->tm_zone); #else size += strlen(tzname[0]); #endif and #if HAVE_TM_ZONE strcat(return_value->value.str.val, ta->tm_zone); #else strcat(return_value->value.str.val, tzname[0]); #endif It may be that for OS/400 we may need to do something different, but in the meantime HAVE_TZNAME needs to be checked prior to accessing tzname. --------------------------------------------------------------------------- ATTENTION! Do NOT reply to this email! To reply, use the web interface found at http://bugs.php.net/?id=9380&edit=2

« previous php.dev (#47422) next »