mirror of
https://github.com/php/php-src.git
synced 2024-12-26 18:29:37 +08:00
15 lines
261 B
PHP
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)
|