xref: /PHP-7.2/ext/date/tests/bug35885.phpt (revision bb2ec1c7)
1--TEST--
2Bug #35885 (strtotime("NOW") no longer works)
3--FILE--
4<?php
5date_default_timezone_set("UTC");
6
7$time = time();
8$ts = date(DATE_ISO8601, strtotime('NOW', $time));
9$ts2 = date(DATE_ISO8601, $time);
10
11$res = ($ts == $ts2);
12var_dump($res);
13
14if (!$res) {
15	var_dump($ts);
16	var_dump($ts2);
17}
18
19?>
20--EXPECT--
21bool(true)
22