Always cast input to string in wfBaseConvert
Fixes a regression caused by I841717be: IP::toHex('128.0.0.0')
was broken on 32-bit systems with the GMP extension installed.
Change-Id: I0c9a4ae771668e005355e381de4065d73c261460
This commit is contained in:
parent
f288ae3290
commit
1d41a94cff
1 changed files with 1 additions and 0 deletions
|
|
@ -3206,6 +3206,7 @@ function wfDoUpdates( $commit = '' ) {
|
|||
* @return string|bool The output number as a string, or false on error
|
||||
*/
|
||||
function wfBaseConvert( $input, $sourceBase, $destBase, $pad = 1, $lowercase = true, $engine = 'auto' ) {
|
||||
$input = (string)$input;
|
||||
if(
|
||||
$sourceBase < 2 ||
|
||||
$sourceBase > 36 ||
|
||||
|
|
|
|||
Loading…
Reference in a new issue