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 --- > short_open_tag = On 300c300 < max_execution_time = 30 ; Maximum execution time of each script, in seconds --- > max_execution_time = 300 ; Maximum execution time of each script, in seconds 347,349c347,350 < ; - Show all errors, except coding standards warnings < ; < error_reporting = E_ALL --- > ; - Show all errors > ; > #error_reporting = E_ALL > error_reporting = E_ALL & ~E_NOTICE 374c375 < ignore_repeated_errors = Off --- > ignore_repeated_errors = On 412a414 > error_log = "d:\php5\logfile.log" 513c515 < doc_root = --- > doc_root = "d:\SJAtlanticus" 519a522,523 > extension_dir = "d:/PHP5/ext" > ;extension_dir = "./" 638a643 > ;extension=php_filepro.dll 721c726,727 < SMTP = localhost --- > #SMTP = localhost > SMTP = xanadu 725c731 < ;sendmail_from = [EMAIL PROTECTED] --- > sendmail_from = [EMAIL PROTECTED] 1013a1020 > session.save_path = d:/php/php_sessions 1051c1058,1059 < session.gc_probability = 1 --- > session.gc_probability = 0 > ;session.gc_probability = 1 1309a1318,1325 > [PHP_GD2] > extension=php_gd2.dll > [PHP_MBSTRING] > extension=php_mbstring.dll > [PHP_ZIP] > extension=php_zip.dll > [PHP_SMTP] > extension=php_smtp.dll 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