xref: /PHP-8.0/ext/intl/tests/bug81019.phpt (revision 0bff67c0)
1--TEST--
2Bug #81019: Unable to clone NumberFormatter after failed parse()
3--FILE--
4<?php
5
6$fmt = new NumberFormatter('en_US', NumberFormatter::DECIMAL);
7$fmt->parse('abc');
8$fmt2 = clone $fmt;
9
10$datefmt = new IntlDateFormatter('en_US', IntlDateFormatter::FULL, IntlDateFormatter::FULL);
11$datefmt->parse('abc');
12$datefmt2 = clone $datefmt;
13
14$msgfmt = new MessageFormatter('en_US', '{0,number,integer}');
15$msgfmt->parse('abc');
16$msgfmt2 = clone $msgfmt;
17
18?>
19===DONE===
20--EXPECT--
21===DONE===
22