bug75378.phpt 472 B

1234567891011121314151617
  1. --TEST--
  2. Bug #75378 ([REGRESSION] IntlDateFormatter::parse() does not change $position argument)
  3. --EXTENSIONS--
  4. intl
  5. --FILE--
  6. <?php
  7. $formatter = new IntlDateFormatter("en-GB", IntlDateFormatter::NONE, IntlDateFormatter::NONE, 'UTC', null, 'yyyy-MM-dd');
  8. $position = 0;
  9. $parsedDate = $formatter->parse("2017-10-12", $position);
  10. var_dump($position);
  11. $localdate = $formatter->localtime("2017-10-12 00:00:00", $position1);
  12. var_dump($position1);
  13. ?>
  14. --EXPECT--
  15. int(10)
  16. int(10)