xref: /PHP-7.4/ext/date/tests/bug36510.phpt (revision 2d02bedd)
1--TEST--
2Bug #36510 (strtotime() fails to parse date strings with tabs)
3--FILE--
4<?php
5date_default_timezone_set("UTC");
6
7$t = 1140973388;
8
9var_dump(strtotime("-2 hours", $t));
10var_dump(strtotime("-2\thours", $t));
11?>
12--EXPECT--
13int(1140966188)
14int(1140966188)
15