# change of variable name from tzname to formal_tzname

- Thread: https://externals.io/message/19473
- Original archive: https://news-web.php.net/php.internals/19473
- Started by Kamesh Jayachandran on 2005-10-07T13:24:52+00:00
- Messages: 2
- Reply by email to internals@lists.php.net
- More for agents: search with https://externals.io/search.md?q={query} · JSON API at https://externals.io/api · documentation at https://externals.io/llms.txt

---

## #19473 — Kamesh Jayachandran — 2005-10-07T13:24:52+00:00

URL: https://externals.io/message/19473#19473

Hi Derick,
From Yesterday(06/10/2005) onwards NetWare php-5.1 autotests were
failing because of a segfault from tests/lang/023.phpt which makes one
mktime call.
When delved for the cause it seems that In NetWare LibC SDK's time.h
tzname is expanded to ___tzname() this cause the C preprocessor to
change the tzname to vague ___tzname function call in
php_date_parse_tzfile().
Changing the variable name tzname to formal_tzname or anything more
pleasing in php_date_parse_tzfile should fix it.

http://puggy.symonds.net/~kameshj/php_date.c.patch

Can you check in this?

With regards
Kamesh Jayachandran

-- 
http://www.fastmail.fm - And now for something completely different

---

## #19475 — Derick Rethans — 2005-10-07T13:33:57+00:00

URL: https://externals.io/message/19473#19475 · In reply to: #19473

Hello,



> From Yesterday(06/10/2005) onwards NetWare php-5.1 autotests were
> failing because of a segfault from tests/lang/023.phpt which makes one
> mktime call.
> When delved for the cause it seems that In NetWare LibC SDK's time.h
> tzname is expanded to ___tzname() this cause the C preprocessor to
> change the tzname to vague ___tzname function call in
> php_date_parse_tzfile().
> Changing the variable name tzname to formal_tzname or anything more
> pleasing in php_date_parse_tzfile should fix it.
> 
> http://puggy.symonds.net/~kameshj/php_date.c.patch
> 
> Can you check in this?

Yes, I just committed it.

regards,
Derick

-- 
Derick Rethans
http://derickrethans.nl | http://ez.no | http://xdebug.org
