]> granicus.if.org Git - php/commitdiff
- Change parameter name because NetWare expands "tzname" as a macro to
authorDerick Rethans <derick@php.net>
Fri, 7 Oct 2005 13:33:13 +0000 (13:33 +0000)
committerDerick Rethans <derick@php.net>
Fri, 7 Oct 2005 13:33:13 +0000 (13:33 +0000)
  something else.

ext/date/php_date.c

index 20865106aac4b8679dab23b4298e5d98e0dc5139..9f45a62b9d87ab710a576c3723e61fc77db44614 100644 (file)
@@ -280,16 +280,16 @@ PHP_MINFO_FUNCTION(date)
 /* }}} */
 
 /* {{{ Timezone Cache functions */
-static timelib_tzinfo *php_date_parse_tzfile(char *tzname, timelib_tzdb *tzdb TSRMLS_DC)
+static timelib_tzinfo *php_date_parse_tzfile(char *formal_tzname, timelib_tzdb *tzdb TSRMLS_DC)
 {
        timelib_tzinfo *tzi, **ptzi;
 
-       if (zend_hash_find(&DATEG(tzcache), tzname, strlen(tzname) + 1, (void **) &ptzi) == SUCCESS) {
+       if (zend_hash_find(&DATEG(tzcache), formal_tzname, strlen(formal_tzname) + 1, (void **) &ptzi) == SUCCESS) {
                return *ptzi;
        }
 
-       tzi = timelib_parse_tzfile(tzname, tzdb);
-       zend_hash_add(&DATEG(tzcache), tzname, strlen(tzname) + 1, (void *) &tzi, sizeof(timelib_tzinfo*), NULL);
+       tzi = timelib_parse_tzfile(formal_tzname, tzdb);
+       zend_hash_add(&DATEG(tzcache), formal_tzname, strlen(formal_tzname) + 1, (void *) &tzi, sizeof(timelib_tzinfo*), NULL);
        return tzi;
 }
 /* }}} */