3 // These conversions ignore the provided base and assume it's hex given the
4 // input starts with '0x'. This matches PHP5 behavior.
6 function gmp_noop_convert($str, $base) {
7 var_dump(gmp_strval(gmp_init($str, $base), $base));
10 gmp_noop_convert('0x123', 16);
11 gmp_noop_convert('0x123', 34);
12 gmp_noop_convert('0x123', 35);
13 gmp_noop_convert('0x123', 36);
15 gmp_noop_convert('0xggg', 34);
16 gmp_noop_convert('0xggg', 35);
17 gmp_noop_convert('0xggg', 36);