diff options
author | Ilia Alshanetsky <iliaa@php.net> | 2002-10-29 15:36:47 +0000 |
---|---|---|
committer | Ilia Alshanetsky <iliaa@php.net> | 2002-10-29 15:36:47 +0000 |
commit | 19820c0e83d4a98faf9b5882af48fb4f990df800 (patch) | |
tree | b5f084115594a44a38924df38fcf97e19677892b /ext | |
parent | c371b6c5f97bcee735f89cff72d452accd092abe (diff) | |
download | php-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.phpt | 8 |
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 ( |