1
0
mirror of https://github.com/php/php-src.git synced 2026-03-24 00:02:20 +01:00
Files
archived-php-src/ext/date/tests/bug36510.phpt

15 lines
261 B
PHP

--TEST--
Bug #36510 (strtotime() fails to parse date strings with tabs)
--FILE--
<?php
date_default_timezone_set("UTC");
$t = 1140973388;
var_dump(strtotime("-2 hours", $t));
var_dump(strtotime("-2\thours", $t));
?>
--EXPECT--
int(1140966188)
int(1140966188)