pajoye                                   Sun, 04 Sep 2011 22:04:42 +0000

Revision: http://svn.php.net/viewvc?view=revision&revision=316118

Log:
- skip on win, TZ cannot be set using putenv at runtime

Changed paths:
    U   php/php-src/branches/PHP_5_3/ext/date/tests/bug13142.phpt
    U   php/php-src/branches/PHP_5_4/ext/date/tests/bug13142.phpt
    U   php/php-src/trunk/ext/date/tests/bug13142.phpt

Modified: php/php-src/branches/PHP_5_3/ext/date/tests/bug13142.phpt
===================================================================
--- php/php-src/branches/PHP_5_3/ext/date/tests/bug13142.phpt   2011-09-04 
21:59:27 UTC (rev 316117)
+++ php/php-src/branches/PHP_5_3/ext/date/tests/bug13142.phpt   2011-09-04 
22:04:42 UTC (rev 316118)
@@ -4,6 +4,11 @@
 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");
 }

Modified: php/php-src/branches/PHP_5_4/ext/date/tests/bug13142.phpt
===================================================================
--- php/php-src/branches/PHP_5_4/ext/date/tests/bug13142.phpt   2011-09-04 
21:59:27 UTC (rev 316117)
+++ php/php-src/branches/PHP_5_4/ext/date/tests/bug13142.phpt   2011-09-04 
22:04:42 UTC (rev 316118)
@@ -4,6 +4,11 @@
 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");
 }

Modified: php/php-src/trunk/ext/date/tests/bug13142.phpt
===================================================================
--- php/php-src/trunk/ext/date/tests/bug13142.phpt      2011-09-04 21:59:27 UTC 
(rev 316117)
+++ php/php-src/trunk/ext/date/tests/bug13142.phpt      2011-09-04 22:04:42 UTC 
(rev 316118)
@@ -4,6 +4,11 @@
 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");
 }

-- 
PHP CVS Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to