]> granicus.if.org Git - php/commitdiff
Added a skip condition for situations where the TZ variable could not be
authorIlia Alshanetsky <iliaa@php.net>
Tue, 29 Oct 2002 15:36:47 +0000 (15:36 +0000)
committerIlia Alshanetsky <iliaa@php.net>
Tue, 29 Oct 2002 15:36:47 +0000 (15:36 +0000)
set (safe_mode).

ext/standard/tests/time/002.phpt

index eba00b074b6a39322594cabe0cd806695f14d347..aa97645ec14542fc0e649e9d54164d7153217845 100644 (file)
@@ -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 (