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