Date: 02/22/01
- Next message: amra <email protected>: "[PHP-DEV] PHP 4.0 Bug #9382 Updated: inet_aton prototype not used"
- Previous message: Andrew Hill: "RE: [PHP-DEV] PEAR issue #2 (pear-dev) vote"
- Next in thread: sas <email protected>: "[PHP-DEV] PHP 4.0 Bug #9380 Updated: HAVE_TZNAME not being checked"
- Maybe reply: sas <email protected>: "[PHP-DEV] PHP 4.0 Bug #9380 Updated: HAVE_TZNAME not being checked"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
ID: 9380
User Update by: amra <email protected>
Status: Open
Bug Type: Compile Failure
Description: HAVE_TZNAME not being checked
Previous Comments:
---------------------------------------------------------------------------
[2001-02-21 14:22:35] amra <email protected>
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.
---------------------------------------------------------------------------
Full Bug description available at: http://bugs.php.net/?id=9380
-- PHP Development Mailing List <http://www.php.net/> To unsubscribe, e-mail: php-dev-unsubscribe <email protected> For additional commands, e-mail: php-dev-help <email protected> To contact the list administrators, e-mail: php-list-admin <email protected>
- Next message: amra <email protected>: "[PHP-DEV] PHP 4.0 Bug #9382 Updated: inet_aton prototype not used"
- Previous message: Andrew Hill: "RE: [PHP-DEV] PEAR issue #2 (pear-dev) vote"
- Next in thread: sas <email protected>: "[PHP-DEV] PHP 4.0 Bug #9380 Updated: HAVE_TZNAME not being checked"
- Maybe reply: sas <email protected>: "[PHP-DEV] PHP 4.0 Bug #9380 Updated: HAVE_TZNAME not being checked"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]

