You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
msgfmt_format $values may not support references #8364
The error happens only if arguments are used in the foreach by reference and only if the number of arguments in the array and in the translation string are different.
The code works fine in 5.6, it fails in 7.0 and newer versions.
Activity
cmb69 commentedon Apr 13, 2022
Yeah, we're missing the handling of references (
IS_REFERENCE) here.[-]MessageFormatter fails with U_ILLEGAL_ARGUMENT_ERROR[/-][+]msgfmt_format $values may not support references[/+]Fix phpGH-8364: msgfmt_format $values may not support references
Fix GH-8364: msgfmt_format $values may not support references
Merge branch 'PHP-8.0' into PHP-8.1
Merge branch 'PHP-8.1'