summaryrefslogtreecommitdiff
path: root/ext/date/tests/bug36988.phpt
diff options
context:
space:
mode:
authorScott MacVicar <scottmac@php.net>2009-01-10 00:50:45 +0000
committerScott MacVicar <scottmac@php.net>2009-01-10 00:50:45 +0000
commita9e5e22275babc72b0a4c68d62d434a6a91522e0 (patch)
treeb0bdbc5a0acc9543f85bdd57418758e1fb1cea20 /ext/date/tests/bug36988.phpt
parentcc6b14ef6dfbdec98bbcd9d8fac2273d1f24ed4b (diff)
downloadphp-git-a9e5e22275babc72b0a4c68d62d434a6a91522e0.tar.gz
If a TZ environmental is set then it ends up getting used instead of the INI setting, use date_default_timezone_set() instead.
Diffstat (limited to 'ext/date/tests/bug36988.phpt')
-rw-r--r--ext/date/tests/bug36988.phpt3
1 files changed, 1 insertions, 2 deletions
diff --git a/ext/date/tests/bug36988.phpt b/ext/date/tests/bug36988.phpt
index d35e58939a..c37d1fb768 100644
--- a/ext/date/tests/bug36988.phpt
+++ b/ext/date/tests/bug36988.phpt
@@ -1,9 +1,8 @@
--TEST--
Bug #36988 (mktime freezes on long numbers)
---INI--
-date.timezone=GMT
--FILE--
<?php
+date_default_timezone_set('GMT');
$start = microtime(true);
$a = mktime(1, 1, 1, 1, 1, 11111111111);
echo (microtime(true) - $start) < 1 ? "smaller than one second" : "more than a second";