mirror of
https://github.com/php/php-src.git
synced 2026-03-24 00:02:20 +01:00
Conversion of floating point to integer values is undefined if the integral part of the float value cannot be represented by the integer type. We need to cater to that explicitly (in a manner similar to `zend_dval_to_lval_cap()`). Closes GH-17689.
12 lines
243 B
PHP
12 lines
243 B
PHP
--TEST--
|
|
GH-17503 (Undefined float conversion in mb_convert_variables)
|
|
--EXTENSIONS--
|
|
mbstring
|
|
--FILE--
|
|
<?php
|
|
$a = array_fill(0, 500, "<blah>");
|
|
var_dump(mb_convert_variables("ASCII", ["UTF-8", "UTF-16"], $a));
|
|
?>
|
|
--EXPECT--
|
|
string(5) "UTF-8"
|