]> granicus.if.org Git - php/commitdiff
- skip on win, TZ cannot be set using putenv at runtime
authorPierre Joye <pajoye@php.net>
Sun, 4 Sep 2011 22:04:42 +0000 (22:04 +0000)
committerPierre Joye <pajoye@php.net>
Sun, 4 Sep 2011 22:04:42 +0000 (22:04 +0000)
ext/date/tests/bug13142.phpt

index 60fc7e7f6eaedd5035b4496b849cba1aee1a9fbc..dc02f68dad7485a7578a4490fb0d87e2930a6cce 100644 (file)
@@ -4,6 +4,11 @@ Bug #13142 (strtotime handling of "M d H:i:s Y" format)
 date.timezone=US/Eastern
 --SKIPIF--
 <?php
+if (defined('PHP_WINDOWS_VERSION_MAJOR')) {
+       die("skip. set TZ env is not supported at runtime.");
+}
+--SKIPIF--
+<?php
 if (!@putenv("TZ=US/Eastern") || getenv("TZ") != 'US/Eastern') {
        die("skip unable to change TZ enviroment variable\n");
 }