diff options
Diffstat (limited to 'ext/date/tests/bug36510.phpt')
-rw-r--r-- | ext/date/tests/bug36510.phpt | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/ext/date/tests/bug36510.phpt b/ext/date/tests/bug36510.phpt new file mode 100644 index 0000000000..ea8bb028b2 --- /dev/null +++ b/ext/date/tests/bug36510.phpt @@ -0,0 +1,14 @@ +--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) |