From:             [EMAIL PROTECTED]
Operating system: OS400
PHP version:      4.0.4pl1
PHP Bug Type:     Compile Failure
Bug description:  HAVE_TZNAME not being checked

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:

                                size += strlen(ta->tm_zone);
                                size += strlen(tzname[0]);


                                strcat(return_value->value.str.val, ta->tm_zone);
                                strcat(return_value->value.str.val, tzname[0]);

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.

Edit Bug report at:

PHP Development Mailing List <>
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]

Reply via email to