bug64157.phpt 352 B

1234567891011121314
  1. --TEST--
  2. Test for bug #64157: DateTime::createFromFormat() reports confusing error message
  3. --CREDITS--
  4. Boro Sitnikovski <buritomath@yahoo.com>
  5. --INI--
  6. date.timezone = UTC
  7. --FILE--
  8. <?php
  9. DateTime::createFromFormat('s', '0');
  10. $lastErrors = DateTime::getLastErrors();
  11. print_r($lastErrors['errors'][0]);
  12. ?>
  13. --EXPECT--
  14. A two digit second could not be found