bug36510.phpt 261 B

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