Bug #75425 [NEW]: mb_convert_variables converts integers to strings
From: info at its-mieger dot de
Operating system: debian
PHP version: 7.1.10
Package: mbstring related
Bug Type: Bug
Bug description:mb_convert_variables converts integers to strings
Description:
------------
Integer values are converted to strings by mb_convert_variables. But
variable types should be kept
Test script:
---------------
$x = ["a" => 1];
mb_convert_variables("UTF-8", "ISO-8859-15", $x);
var_dump($x);
Expected result:
----------------
array(1) {
["a"]=>
int(1)
}
Actual result:
--------------
array(1) {
["a"]=>
string(1) "1"
}
--
Edit bug report at https://bugs.php.net/bug.php?id=75425&edit=1
--
Try a snapshot (PHP 5.4): https://bugs.php.net/fix.php?id=75425&r=trysnapshot54
Try a snapshot (PHP 5.5): https://bugs.php.net/fix.php?id=75425&r=trysnapshot55
Try a snapshot (trunk): https://bugs.php.net/fix.php?id=75425&r=trysnapshottrunk
Fixed in SVN: https://bugs.php.net/fix.php?id=75425&r=fixed
Fixed in release: https://bugs.php.net/fix.php?id=75425&r=alreadyfixed
Need backtrace: https://bugs.php.net/fix.php?id=75425&r=needtrace
Need Reproduce Script: https://bugs.php.net/fix.php?id=75425&r=needscript
Try newer version: https://bugs.php.net/fix.php?id=75425&r=oldversion
Not developer issue: https://bugs.php.net/fix.php?id=75425&r=support
Expected behavior: https://bugs.php.net/fix.php?id=75425&r=notwrong
Not enough info: https://bugs.php.net/fix.php?id=75425&r=notenoughinfo
Submitted twice: https://bugs.php.net/fix.php?id=75425&r=submittedtwice
register_globals: https://bugs.php.net/fix.php?id=75425&r=globals
PHP 4 support discontinued: https://bugs.php.net/fix.php?id=75425&r=php4
Daylight Savings: https://bugs.php.net/fix.php?id=75425&r=dst
IIS Stability: https://bugs.php.net/fix.php?id=75425&r=isapi
Install GNU Sed: https://bugs.php.net/fix.php?id=75425&r=gnused
Floating point limitations: https://bugs.php.net/fix.php?id=75425&r=float
No Zend Extensions: https://bugs.php.net/fix.php?id=75425&r=nozend
MySQL Configuration Error: https://bugs.php.net/fix.php?id=75425&r=mysqlcfg
Thread (5 messages)
- info at its-mieger dot de