1--TEST--
2gmp_init() with various integer notations
3--EXTENSIONS--
4gmp
5--FILE--
6<?php
7
8var_dump(gmp_init("0x16"));
9var_dump(gmp_init("0X16"));
10var_dump(gmp_init("0o16"));
11var_dump(gmp_init("0o16"));
12var_dump(gmp_init("016"));
13var_dump(gmp_init("016"));
14var_dump(gmp_init("0b11"));
15var_dump(gmp_init("0b11"));
16
17?>
18--EXPECT--
19object(GMP)#1 (1) {
20  ["num"]=>
21  string(2) "22"
22}
23object(GMP)#1 (1) {
24  ["num"]=>
25  string(2) "22"
26}
27object(GMP)#1 (1) {
28  ["num"]=>
29  string(2) "14"
30}
31object(GMP)#1 (1) {
32  ["num"]=>
33  string(2) "14"
34}
35object(GMP)#1 (1) {
36  ["num"]=>
37  string(2) "14"
38}
39object(GMP)#1 (1) {
40  ["num"]=>
41  string(2) "14"
42}
43object(GMP)#1 (1) {
44  ["num"]=>
45  string(1) "3"
46}
47object(GMP)#1 (1) {
48  ["num"]=>
49  string(1) "3"
50}
51