Bug #8912 [Com]: putenv causes crashes in DateTimeZone::inDaylightTime under windows.

From: Date: Tue, 18 Sep 2018 21:24:00 +0000
Subject: Bug #8912 [Com]: putenv causes crashes in DateTimeZone::inDaylightTime under windows.
References: 1  Groups: php.pear.bugs 
Request: Send a blank email to pear-bugs+get-11428@lists.php.net to get a copy of this message
Edit report at https://pear.php.net/bugs/bug.php?id=8912&edit=1 ID: 8912 Comment by: flintweather at gmail dot com Reported By: daniel dot oconnor at gmail dot com Summary: putenv causes crashes in DateTimeZone::inDaylightTime under windows. Status: Assigned Type: Bug Package: Date Package Version: 1.4.6 PHP Version: 5.1.6 Assigned To: firman Roadmap Versions: New Comment: Unit test patched as of https://github.com/pear/Date/commit/ee6e1ff Also modified a minor(?) part of the expectations as part of the patch. Previous Comments: ------------------------------------------------------------------------ [2009-01-01 03:52:18] doconnor Bug #14413 too ------------------------------------------------------------------------ [2009-01-01 03:43:49] doconnor Spun off problem to Bug #15478 ------------------------------------------------------------------------ [2009-01-01 03:10:14] doconnor Looks like new Date(time()); doesn't do what the test thought it did ------------------------------------------------------------------------ [2009-01-01 03:03:03] doconnor At the moment, this test is failing in CVS. 17) /home/clockwerx/pear/Date/tests/bugs/bug-8912.phpt --- Expected +++ Actual @@ -1,47 +1,47 @@ -Original Time (Australia/Adelaide): 01:00 1188561599 -Australia/Adelaide: 1188561599 -Difference: 0 -Australia/Adelaide: 1188561599 -Difference: 0 - -Original Time (Australia/Adelaide): 01:00 1188561599 -Australia/Canberra: 1188561599 -Difference: 0 -Australia/Canberra: 1188563399 -Difference: 1800 - -Original Time (Australia/Adelaide): 01:00 1188561599 -Australia/Darwin: 1188561599 -Difference: 0 -Australia/Darwin: 1188561599 -Difference: 0 - -Original Time (Australia/Adelaide): 01:00 1188561599 -Australia/Brisbane: 1188561599 -Difference: 0 -Australia/Brisbane: 1188563399 -Difference: 1800 - -Original Time (Australia/Adelaide): 01:00 1188561599 -Australia/Hobart: 1188561599 -Difference: 0 -Australia/Hobart: 1188563399 -Difference: 1800 - -Original Time (Australia/Adelaide): 01:00 1188561599 -Australia/Melbourne: 1188561599 -Difference: 0 -Australia/Melbourne: 1188563399 -Difference: 1800 - -Original Time (Australia/Adelaide): 01:00 1188561599 -Australia/Perth: 1188561599 -Difference: 0 -Australia/Perth: 1188556199 -Difference: -5400 - -Original Time (Australia/Adelaide): 01:00 1188561599 -Australia/Sydney: 1188561599 -Difference: 0 -Australia/Sydney: 1188563399 -Difference: 1800 \ No newline at end of file +Original Time (Australia/Adelaide): 09:30 943885800 +Australia/Adelaide: 943885800 +Difference: -244675799 +Australia/Adelaide: 943885800 +Difference: -244675799 + +Original Time (Australia/Adelaide): 09:30 943885800 +Australia/Canberra: 943885800 +Difference: -244675799 +Australia/Canberra: 943887600 +Difference: -244673999 + +Original Time (Australia/Adelaide): 09:30 943885800 +Australia/Darwin: 943885800 +Difference: -244675799 +Australia/Darwin: 943885800 +Difference: -244675799 + +Original Time (Australia/Adelaide): 09:30 943885800 +Australia/Brisbane: 943885800 +Difference: -244675799 +Australia/Brisbane: 943887600 +Difference: -244673999 + +Original Time (Australia/Adelaide): 09:30 943885800 +Australia/Hobart: 943885800 +Difference: -244675799 +Australia/Hobart: 943887600 +Difference: -244673999 + +Original Time (Australia/Adelaide): 09:30 943885800 +Australia/Melbourne: 943885800 +Difference: -244675799 +Australia/Melbourne: 943887600 +Difference: -244673999 + +Original Time (Australia/Adelaide): 09:30 943885800 +Australia/Perth: 1230733800 +Difference: 42172201 +Australia/Perth: 1230728400 +Difference: 42166801 + +Original Time (Australia/Adelaide): 09:30 943885800 +Australia/Sydney: 943885800 +Difference: -244675799 +Australia/Sydney: 943887600 +Difference: -244673999 \ No newline at end of file /home/clockwerx/pear/AllTests.php:136 /home/clockwerx/pear/AllTests.php:525 ------------------------------------------------------------------------ [2006-11-14 06:30:23] firman This bug has been fixed in CVS. If this was a documentation problem, the fix will appear on pear.php.net by the end of next Sunday (CET). If this was a problem with the pear.php.net website, the change should be live shortly. Otherwise, the fix will appear in the package's next release. Thank you for the report and for helping us make PEAR better. Okay, great! So I closed this bug. ------------------------------------------------------------------------ The remainder of the comments for this report are too long. To view the rest of the comments, please view the bug report online at http://pear.php.net/bugs/bug.php?id=8912 -- Edit this bug report at https://pear.php.net/bugs/bug.php?id=8912&edit=1

« previous php.pear.bugs (#11428) next »