@@ -9,9 +9,6 @@ if (PHP_INT_SIZE != 4) die("skip this test is for 32bit platform only");
99--FILE--
1010<?php
1111echo "*** Testing decbin() : usage variations *** \n" ;
12- //get an unset variable
13- $ unset_var = 10 ;
14- unset ($ unset_var );
1512
1613// heredoc string
1714$ heredoc = <<<EOT
@@ -43,10 +40,6 @@ $inputs = array(
4340 12.3456789000E-10 ,
4441 .5 ,
4542
46- // null data
47- /*12*/ NULL ,
48- null ,
49-
5043 // boolean data
5144/*14*/ true ,
5245 false ,
@@ -66,12 +59,6 @@ $inputs = array(
6659 // object data
6760/*24*/ new classA (),
6861
69- // undefined data
70- /*25*/ @$ undefined_var ,
71-
72- // unset data
73- /*26*/ @$ unset_var ,
74-
7562 // resource variable
7663/*27*/ $ fp
7764);
@@ -127,7 +114,7 @@ string(1) "0"
127114string(1) "0"
128115
129116-- Iteration 12 --
130- string(1) "0 "
117+ string(1) "1 "
131118
132119-- Iteration 13 --
133120string(1) "0"
@@ -139,37 +126,25 @@ string(1) "1"
139126string(1) "0"
140127
141128-- Iteration 16 --
142- string(1) "1"
129+ decbin(): Argument #1 ($num) must be of type int, string given
143130
144131-- Iteration 17 --
145- string(1) "0"
132+ decbin(): Argument #1 ($num) must be of type int, string given
146133
147134-- Iteration 18 --
148- decbin(): Argument #1 ($num) must be of type int, string given
135+ decbin(): Argument #1 ($num) must be of type int, array given
149136
150137-- Iteration 19 --
151138decbin(): Argument #1 ($num) must be of type int, string given
152139
153140-- Iteration 20 --
154- decbin(): Argument #1 ($num) must be of type int, array given
141+ decbin(): Argument #1 ($num) must be of type int, string given
155142
156143-- Iteration 21 --
157144decbin(): Argument #1 ($num) must be of type int, string given
158145
159146-- Iteration 22 --
160- decbin(): Argument #1 ($num) must be of type int, string given
161-
162- -- Iteration 23 --
163- decbin(): Argument #1 ($num) must be of type int, string given
164-
165- -- Iteration 24 --
166147decbin(): Argument #1 ($num) must be of type int, classA given
167148
168- -- Iteration 25 --
169- string(1) "0"
170-
171- -- Iteration 26 --
172- string(1) "0"
173-
174- -- Iteration 27 --
149+ -- Iteration 23 --
175150decbin(): Argument #1 ($num) must be of type int, resource given
0 commit comments