Fix refcounting in arReturn() and stop leaking static strings.
[hiphop-php.git] / hphp / test / slow / ext_gmp / implicit_hex_conversion.php
blob33c666361ef9bda824ccec1bf1b4bf2204360bdb
1 <?php
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);