#36819 [Fbk->Opn]: putenv("TZ") frequent will cause the apache crash
| From: | liber at iproom dot com | Date: | Wed, 22 Mar 2006 08:58:18 +0000 |
| Subject: | #36819 [Fbk->Opn]: putenv("TZ") frequent will cause the apache crash | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-94752@lists.php.net to get a copy of this message | ||
ID: 36819
User updated by: liber at iproom dot com
Reported By: liber at iproom dot com
-Status: Feedback
+Status: Open
Bug Type: Unknown/Other Function
Operating System: Windows XP
PHP Version: 5.1.2
New Comment:
This is occurred only on Windows platform.
Previous Comments:
------------------------------------------------------------------------
[2006-03-22 09:27:13] judas dot iscariote at gmail dot com
Im unable to reproduce this in the current CVS version on linux
------------------------------------------------------------------------
[2006-03-22 08:37:52] tony2001@php.net
Please try using this CVS snapshot:
http://snaps.php.net/php5.1-latest.tar.gz
For Windows:
http://snaps.php.net/win32/php5.1-win32-latest.zip
------------------------------------------------------------------------
[2006-03-22 04:35:25] liber at iproom dot com
if continue executes after the crash messages popup,
after fews times executions, it shows following messages:
Warning: Unknown: failed to open stream: Invalid argument in Unknown on
line 0
Warning: Unknown: Failed opening 'C:\Projects\test\tz.php' for
inclusion (include_path='.;C:\php5\pear') in Unknown on line 0
------------------------------------------------------------------------
[2006-03-22 04:33:08] 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.
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=36819&edit=1