summaryrefslogtreecommitdiff
path: root/ext
diff options
context:
space:
mode:
authorIlia Alshanetsky <iliaa@php.net>2002-10-29 15:36:47 +0000
committerIlia Alshanetsky <iliaa@php.net>2002-10-29 15:36:47 +0000
commit19820c0e83d4a98faf9b5882af48fb4f990df800 (patch)
treeb5f084115594a44a38924df38fcf97e19677892b /ext
parentc371b6c5f97bcee735f89cff72d452accd092abe (diff)
downloadphp-git-19820c0e83d4a98faf9b5882af48fb4f990df800.tar.gz
Added a skip condition for situations where the TZ variable could not be
set (safe_mode).
Diffstat (limited to 'ext')
-rw-r--r--ext/standard/tests/time/002.phpt8
1 files changed, 6 insertions, 2 deletions
diff --git a/ext/standard/tests/time/002.phpt b/ext/standard/tests/time/002.phpt
index eba00b074b..aa97645ec1 100644
--- a/ext/standard/tests/time/002.phpt
+++ b/ext/standard/tests/time/002.phpt
@@ -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 (