cvs: php4 /ext/standard/tests/time 002.phpt
| From: | Ilia Alshanetsky | Date: | Tue, 29 Oct 2002 15:36:48 +0000 |
| Subject: | cvs: php4 /ext/standard/tests/time 002.phpt | ||
| Groups: | php.cvs | ||
| Request: | Send a blank email to php-cvs+get-15592@lists.php.net to get a copy of this message | ||
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 (