go to bug id or search bugs for
I recently found a problem on a php piece of code
who looks like:
putenv("TZ=$Some_TZ"); // Like "EST5EDT"
echo "Timezone = ".$val;
It sometimes get the right value, sometimes some "near" garbage
values. Not repeateable (at random under apache).
it looks like that under standard linux(glibc2), all "time" related function
should call "C" function tzset() before first usage.
I see in the source that: _php_mktime() is calling tzset() #if HAVE_TZSET
the strftime() function need this too (for linux at least)
Add a Patch
Add a Pull Request
Fixed in CVS. Thank you for pointing this out.