1--TEST--
2Test base_convert() function : strange literals
3--FILE--
4<?php
5echo 'Binary to decimal:', \PHP_EOL;
6var_dump(base_convert('0b', 2, 10));
7var_dump(base_convert('0B', 2, 10));
8var_dump(base_convert('', 2, 10));
9echo 'Octal to decimal:', \PHP_EOL;
10var_dump(base_convert('0o', 8, 10));
11var_dump(base_convert('0O', 8, 10));
12var_dump(base_convert('0', 8, 10));
13var_dump(base_convert('', 8, 10));
14echo 'Hexadecimal to decimal:', \PHP_EOL;
15var_dump(base_convert('0x', 16, 10));
16var_dump(base_convert('0X', 16, 10));
17var_dump(base_convert('', 16, 10));
18?>
19--EXPECT--
20Binary to decimal:
21string(1) "0"
22string(1) "0"
23string(1) "0"
24Octal to decimal:
25string(1) "0"
26string(1) "0"
27string(1) "0"
28string(1) "0"
29Hexadecimal to decimal:
30string(1) "0"
31string(1) "0"
32string(1) "0"
33