1--TEST-- 2Bug #76942 U_ARGUMENT_TYPE_MISMATCH 3--SKIPIF-- 4<?php 5if (!extension_loaded('intl')) 6 die('skip intl extension not enabled'); 7?> 8--FILE-- 9<?php 10 11$locale = 'nl'; 12$message = '{0,number,#,###.##} MB'; 13$vars = [ 14 7.1234 15]; 16 17$formatter = new MessageFormatter($locale, $message); 18if (!$formatter) { 19 throw new Exception(intl_get_error_message(), intl_get_error_code()); 20} 21 22$result = $formatter->format($vars); 23if ($result === false) { 24 throw new Exception($formatter->getErrorMessage(), $formatter->getErrorCode()); 25} 26 27var_dump($result); 28 29?> 30==DONE== 31--EXPECT-- 32string(7) "7,12 MB" 33==DONE== 34