|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
[2006-03-22 04:33 UTC] liber at iproom dot com
Description:
------------
if putenv("TZ=some time zone") then
putenv("TZ=")
will cause the apache crash.
this only occur if this commmand executes frequent,
and only on Windows platform.
Reproduce code:
---------------
<?php
putenv("TZ=CST-8");
putenv("TZ=");
echo time();
?>
Expected result:
----------------
display the timestamp
Actual result:
--------------
if executes frequent and quickly (maybe more than 20-30 times)
the apache will popup crash messages.
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
|
|||||||||||||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Sun Nov 30 16:00:01 2025 UTC |
Besides this, you should not use putenv("TZ to set the timezone anyway as this is bound to cause problems as apache on windows is threaded. Use date_default_timezone_set().