Mombu the Php Forum

Go Back   Mombu the Php Forum > Php > #40934 : putenv("TZ=xxxx") doesn't reset correctly
User Name
Password
REGISTER NOW! Mark Forums Read




Reply Bookmark and Share
1 6th October 18:13
php-bugs@lists.php.net (vaughn at solarword dot
External User
 
Posts: 1
Default #40934 : putenv("TZ=xxxx") doesn't reset correctly



From: vaughn at solarword dot net
Operating system: Windows NT XANADU 5.2 build 3790
PHP version: 5.2.1
PHP Bug Type: Date/time related
Bug description: putenv("TZ=xxxx") doesn't reset correctly

Description:
------------
Using Stock PHP5.2.1 msi package downloaded from php.net (Same bug
appeared in php-4.3.11) Apache version=2.0.53

Problem: The first time that TZ is set, that value becomes the new default
for future php runs.

This doesn't appear to be like bug #37908 as the apache logs timestamps
are not changed.

PHP Configure line:
cscript /nologo configure.js "--enable-snapshot-build" "--with-gd=shared"


Apache config:
PHPIniDir "D:/PHP5/"
LoadModule php5_module "D:\\PHP5\\php5apache2.dll"

-------------------------------
diff php-dist.ini php.ini
-------------------------------
128c128
< short_open_tag = Off
---

300c300
< max_execution_time = 30 ; Maximum execution time of each script, in
seconds
---

seconds
347,349c347,350
< ; - Show all errors, except coding standards warnings
< ;
< error_reporting = E_ALL
---


374c375
< ignore_repeated_errors = Off
---

412a414

513c515
< doc_root =
---

519a522,523


638a643

721c726,727
< SMTP = localhost
---


725c731
< ;sendmail_from = me@example.com
---

1013a1020

1051c1058,1059
< session.gc_probability = 1
---


1309a1318,1325


Reproduce code:
---------------
<?
print getenv("TZ");
print "<br>";
putenv("TZ=CST6CDT");
print getenv("TZ");
?>

Expected result:
----------------
<br>CST6CDT

Actual result:
--------------
Output (1st)
<br>CST6CDT
Output (2nd)
CST6CDT<br>CST6CDT


--
Edit bug report at http://bugs.php.net/?id=40934&edit=1
--
Try a CVS snapshot (PHP 4.4): http://bugs.php.net/fix.php?id=40934&r=trysnapshot44
Try a CVS snapshot (PHP 5.2): http://bugs.php.net/fix.php?id=40934&r=trysnapshot52
Try a CVS snapshot (PHP 6.0): http://bugs.php.net/fix.php?id=40934&r=trysnapshot60
Fixed in CVS: http://bugs.php.net/fix.php?id=40934&r=fixedcvs
Fixed in release: http://bugs.php.net/fix.php?id=40934&r=alreadyfixed
Need backtrace: http://bugs.php.net/fix.php?id=40934&r=needtrace
Need Reproduce Script: http://bugs.php.net/fix.php?id=40934&r=needscript
Try newer version: http://bugs.php.net/fix.php?id=40934&r=oldversion
Not developer issue: http://bugs.php.net/fix.php?id=40934&r=support
Expected behavior: http://bugs.php.net/fix.php?id=40934&r=notwrong
Not enough info: http://bugs.php.net/fix.php?id=40934&r=notenoughinfo
Submitted twice: http://bugs.php.net/fix.php?id=40934&r=submittedtwice
register_globals: http://bugs.php.net/fix.php?id=40934&r=globals
PHP 3 support discontinued: http://bugs.php.net/fix.php?id=40934&r=php3
Daylight Savings: http://bugs.php.net/fix.php?id=40934&r=dst
IIS Stability: http://bugs.php.net/fix.php?id=40934&r=isapi
Install GNU Sed: http://bugs.php.net/fix.php?id=40934&r=gnused
Floating point limitations: http://bugs.php.net/fix.php?id=40934&r=float
No Zend Extensions: http://bugs.php.net/fix.php?id=40934&r=nozend
MySQL Configuration Error: http://bugs.php.net/fix.php?id=40934&r=mysqlcfg
  Reply With Quote


 


Reply


Thread Tools
Display Modes


Some other forums that might be of your interest : Php 5 forum, Apache forum, Iis forum, Functions forum, Classes forum, Librarys forum, Bugs forum, Postgres forum, Mysql forum, Paradox forum, Ms sql forum, Configurations forum, Php.ini forum, Problems forum, Scripting forum, Css forum, General forums, Off-topic talk, Links, Extra forums, Php


Copyright © 2006 SmartyDevil.com - Dies Mies Jeschet Boenedoesef Douvema Enitemaus -
666