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