xref: /PHP-8.2/ext/intl/tests/gh8364.phpt (revision 218a93b8)
1--TEST--
2Bug GH-8364 (msgfmt_format $values may not support references)
3--EXTENSIONS--
4intl
5--FILE--
6<?php
7$formatter = new MessageFormatter('en', 'translate {0}');
8$args = ['string', 'string'];
9foreach ($args as &$arg) {
10//     do nothing;
11}
12$result = $formatter->format($args);
13var_dump($result);
14var_dump(intl_get_error_code());
15?>
16--EXPECT--
17string(16) "translate string"
18int(0)
19