![]() ![]() | ![]() |
1.1 ! misho 1: --TEST-- ! 2: Bug #36510 (strtotime() fails to parse date strings with tabs) ! 3: --FILE-- ! 4: <?php ! 5: date_default_timezone_set("UTC"); ! 6: ! 7: $t = 1140973388; ! 8: ! 9: var_dump(strtotime("-2 hours", $t)); ! 10: var_dump(strtotime("-2\thours", $t)); ! 11: ?> ! 12: --EXPECT-- ! 13: int(1140966188) ! 14: int(1140966188)