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                );
26
27for ($i = 0; $i < count($values); $i++) {
28    $res = octdec($values[$i]);
29    var_dump($res);
30}
31?>
32--EXPECTF--
33Deprecated: Invalid characters passed for attempted conversion, these have been ignored in %s on line %d
34int(14489)
35int(253)
36
37Deprecated: Invalid characters passed for attempted conversion, these have been ignored in %s on line %d
38int(36947879)
39
40Deprecated: Invalid characters passed for attempted conversion, these have been ignored in %s on line %d
41int(4618484)
42
43Deprecated: Invalid characters passed for attempted conversion, these have been ignored in %s on line %d
44int(4104)
45int(5349)
46int(342391)
47int(375)
48int(2147483647)
49float(2147483648)
50
51Deprecated: Invalid characters passed for attempted conversion, these have been ignored in %s on line %d
52int(668)
53int(5349)
54
55Deprecated: Invalid characters passed for attempted conversion, these have been ignored in %s on line %d
56int(102923)
57int(823384)
58int(1)
59int(0)
60