1--TEST--
2Test bindec() - basic function test bindec()
3--SKIPIF--
4<?php
5if (PHP_INT_SIZE != 8) die("skip this test is for 64bit platform only");
6?>
7--INI--
8precision=14
9--FILE--
10<?php
11$values = array(111000111,
12				011100000,
13				1111111111111111111111111111111,
14				10000000000000000000000000000000,
15				100002001,
16				'111000111',
17				'011100000',
18				'1111111111111111111111111111111',
19				'10000000000000000000000000000000',
20				'100002001',
21				'abcdefg',
22				311015,
23				31101.3,
24				31.1013e5,
25				0x111ABC,
26				011237,
27				true,
28				false,
29				null);
30
31for ($i = 0; $i < count($values); $i++) {
32	$res = bindec($values[$i]);
33	var_dump($res);
34}
35?>
36--EXPECTF--
37int(455)
38int(0)
39int(32766)
40int(5)
41int(129)
42int(455)
43int(224)
44int(2147483647)
45int(2147483648)
46int(129)
47int(0)
48int(13)
49int(13)
50int(26)
51int(6)
52int(0)
53int(1)
54int(0)
55int(0)
56