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