1--TEST--
2Surprising result with integer literals (hex/binary/octal)
3--EXTENSIONS--
4gmp
5--FILE--
6<?php
7
8$values = [
9    '0x',
10    '0X',
11    '0b',
12    '0B',
13    '0o',
14    '0O',
15    ''
16];
17
18foreach ($values as $value) {
19    try {
20        var_dump(gmp_init($value));
21    } catch (\ValueError $e) {
22        echo $e->getMessage(), \PHP_EOL;
23    }
24}
25?>
26--EXPECT--
27gmp_init(): Argument #1 ($num) is not an integer string
28gmp_init(): Argument #1 ($num) is not an integer string
29gmp_init(): Argument #1 ($num) is not an integer string
30gmp_init(): Argument #1 ($num) is not an integer string
31gmp_init(): Argument #1 ($num) is not an integer string
32gmp_init(): Argument #1 ($num) is not an integer string
33gmp_init(): Argument #1 ($num) is not an integer string
34