]> granicus.if.org Git - php/commitdiff
- Make sure the already set "TZ" environment doesn't mess up the tests.
authorDerick Rethans <derick@php.net>
Wed, 29 Jun 2005 19:00:35 +0000 (19:00 +0000)
committerDerick Rethans <derick@php.net>
Wed, 29 Jun 2005 19:00:35 +0000 (19:00 +0000)
ext/date/tests/default-timezone-1.phpt
ext/date/tests/default-timezone-2.phpt

index 9d32b0c7418f05a0d6bd046ff71720ff2ad5fc72..d736354b9a4e405b660a0dba14b95321b17fccb9 100644 (file)
@@ -4,6 +4,7 @@ date.timezone setting [1]
 date.timezone=GMT
 --FILE--
 <?php
+       putenv('TZ'); // clean TZ so that it doesn't bypass the ini option
        echo strtotime("2005-06-18 22:15:44");
 ?>
 --EXPECT--
index 85f8d89a77b61952bb380851ee17b8e49736f428..fe68ef4d4930befda70b3876d9a25952aab370a6 100644 (file)
@@ -4,6 +4,7 @@ date.timezone setting [2]
 date.timezone=Europe/Oslo
 --FILE--
 <?php
+       putenv('TZ'); // clean TZ so that it doesn't bypass the ini option
        echo strtotime("2005-06-18 22:15:44");
 ?>
 --EXPECT--