1--TEST--
2Test octdec() - basic function test octdec()
3--SKIPIF--
4<?php
5if (PHP_INT_SIZE != 4) die("skip this test is for 32bit platform only");
6?>
7--FILE--
8<?php
9$values = array(01234567,
10				0567,
11				017777777777,
12				020000000000,
13				0x1234ABC,
14				12345,
15				'01234567',
16				'0567',
17				'017777777777',
18				'020000000000',
19				'0x1234ABC',
20				'12345',
21				31101.3,
22				31.1013e5,
23				true,
24				false,
25				null);
26
27for ($i = 0; $i < count($values); $i++) {
28	$res = octdec($values[$i]);
29	var_dump($res);
30}
31?>
32--EXPECT--
33int(14489)
34int(253)
35int(36947879)
36int(4618484)
37int(4104)
38int(5349)
39int(342391)
40int(375)
41int(2147483647)
42float(2147483648)
43int(668)
44int(5349)
45int(102923)
46int(823384)
47int(1)
48int(0)
49int(0)
50