1
0
mirror of https://github.com/php/php-src.git synced 2026-04-26 09:28:21 +02:00
Files
archived-php-src/ext/intl/tests/bug75378.phpt
T
Nikita Popov 7485978339 Migrate SKIPIF -> EXTENSIONS (#7138)
This is an automated migration of most SKIPIF extension_loaded checks.
2021-06-11 11:57:42 +02:00

18 lines
472 B
PHP

--TEST--
Bug #75378 ([REGRESSION] IntlDateFormatter::parse() does not change $position argument)
--EXTENSIONS--
intl
--FILE--
<?php
$formatter = new IntlDateFormatter("en-GB", IntlDateFormatter::NONE, IntlDateFormatter::NONE, 'UTC', null, 'yyyy-MM-dd');
$position = 0;
$parsedDate = $formatter->parse("2017-10-12", $position);
var_dump($position);
$localdate = $formatter->localtime("2017-10-12 00:00:00", $position1);
var_dump($position1);
?>
--EXPECT--
int(10)
int(10)