iliaa           Tue Oct 29 10:36:48 2002 EDT

  Modified files:              
    /php4/ext/standard/tests/time       002.phpt 
  Log:
  Added a skip condition for situations where the TZ variable could not be
  set (safe_mode).
  
  
Index: php4/ext/standard/tests/time/002.phpt
diff -u php4/ext/standard/tests/time/002.phpt:1.3 
php4/ext/standard/tests/time/002.phpt:1.4
--- php4/ext/standard/tests/time/002.phpt:1.3   Sat Oct 27 13:50:26 2001
+++ php4/ext/standard/tests/time/002.phpt       Tue Oct 29 10:36:47 2002
@@ -1,7 +1,11 @@
 --TEST--
 strtotime() function
---POST--
---GET--
+--SKIPIF--
+<?php
+if (!@putenv("TZ=Europe/Amsterdam") || getenv("TZ") != 'Europe/Amsterdam') {
+       die("skip unable to change TZ enviroment variable\n");
+}
+?>
 --FILE--
 <?php
        $dates = array (



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

Reply via email to