@@ -36,54 +36,102 @@ foreach($array as $name => $input) {
3636
3737echo "Done " ;
3838?>
39- --EXPECT --
39+ --EXPECTF --
4040*** Testing array_key_exists() : usage variations ***
4141
4242-- Key in $search array is : null --
43- Iteration 1: bool(true)
44- Iteration 2: bool(true)
43+ Iteration 1:
44+ Deprecated: Using null as an array offset is deprecated, use an empty string instead in %s on line %d
45+ bool(true)
46+ Iteration 2:
47+ Deprecated: Using null as an array offset is deprecated, use an empty string instead in %s on line %d
48+ bool(true)
4549Iteration 3: bool(true)
4650Iteration 4: bool(true)
47- Iteration 5: bool(true)
48- Iteration 6: bool(true)
51+ Iteration 5:
52+ Deprecated: Using null as an array offset is deprecated, use an empty string instead in %s on line %d
53+ bool(true)
54+ Iteration 6:
55+ Deprecated: Using null as an array offset is deprecated, use an empty string instead in %s on line %d
56+ bool(true)
4957
5058-- Key in $search array is : NULL --
51- Iteration 1: bool(true)
52- Iteration 2: bool(true)
59+ Iteration 1:
60+ Deprecated: Using null as an array offset is deprecated, use an empty string instead in %s on line %d
61+ bool(true)
62+ Iteration 2:
63+ Deprecated: Using null as an array offset is deprecated, use an empty string instead in %s on line %d
64+ bool(true)
5365Iteration 3: bool(true)
5466Iteration 4: bool(true)
55- Iteration 5: bool(true)
56- Iteration 6: bool(true)
67+ Iteration 5:
68+ Deprecated: Using null as an array offset is deprecated, use an empty string instead in %s on line %d
69+ bool(true)
70+ Iteration 6:
71+ Deprecated: Using null as an array offset is deprecated, use an empty string instead in %s on line %d
72+ bool(true)
5773
5874-- Key in $search array is : empty single quoted string --
59- Iteration 1: bool(true)
60- Iteration 2: bool(true)
75+ Iteration 1:
76+ Deprecated: Using null as an array offset is deprecated, use an empty string instead in %s on line %d
77+ bool(true)
78+ Iteration 2:
79+ Deprecated: Using null as an array offset is deprecated, use an empty string instead in %s on line %d
80+ bool(true)
6181Iteration 3: bool(true)
6282Iteration 4: bool(true)
63- Iteration 5: bool(true)
64- Iteration 6: bool(true)
83+ Iteration 5:
84+ Deprecated: Using null as an array offset is deprecated, use an empty string instead in %s on line %d
85+ bool(true)
86+ Iteration 6:
87+ Deprecated: Using null as an array offset is deprecated, use an empty string instead in %s on line %d
88+ bool(true)
6589
6690-- Key in $search array is : empty double quoted string --
67- Iteration 1: bool(true)
68- Iteration 2: bool(true)
91+ Iteration 1:
92+ Deprecated: Using null as an array offset is deprecated, use an empty string instead in %s on line %d
93+ bool(true)
94+ Iteration 2:
95+ Deprecated: Using null as an array offset is deprecated, use an empty string instead in %s on line %d
96+ bool(true)
6997Iteration 3: bool(true)
7098Iteration 4: bool(true)
71- Iteration 5: bool(true)
72- Iteration 6: bool(true)
99+ Iteration 5:
100+ Deprecated: Using null as an array offset is deprecated, use an empty string instead in %s on line %d
101+ bool(true)
102+ Iteration 6:
103+ Deprecated: Using null as an array offset is deprecated, use an empty string instead in %s on line %d
104+ bool(true)
73105
74106-- Key in $search array is : undefined variable --
75- Iteration 1: bool(true)
76- Iteration 2: bool(true)
107+ Iteration 1:
108+ Deprecated: Using null as an array offset is deprecated, use an empty string instead in %s on line %d
109+ bool(true)
110+ Iteration 2:
111+ Deprecated: Using null as an array offset is deprecated, use an empty string instead in %s on line %d
112+ bool(true)
77113Iteration 3: bool(true)
78114Iteration 4: bool(true)
79- Iteration 5: bool(true)
80- Iteration 6: bool(true)
115+ Iteration 5:
116+ Deprecated: Using null as an array offset is deprecated, use an empty string instead in %s on line %d
117+ bool(true)
118+ Iteration 6:
119+ Deprecated: Using null as an array offset is deprecated, use an empty string instead in %s on line %d
120+ bool(true)
81121
82122-- Key in $search array is : unset variable --
83- Iteration 1: bool(true)
84- Iteration 2: bool(true)
123+ Iteration 1:
124+ Deprecated: Using null as an array offset is deprecated, use an empty string instead in %s on line %d
125+ bool(true)
126+ Iteration 2:
127+ Deprecated: Using null as an array offset is deprecated, use an empty string instead in %s on line %d
128+ bool(true)
85129Iteration 3: bool(true)
86130Iteration 4: bool(true)
87- Iteration 5: bool(true)
88- Iteration 6: bool(true)
131+ Iteration 5:
132+ Deprecated: Using null as an array offset is deprecated, use an empty string instead in %s on line %d
133+ bool(true)
134+ Iteration 6:
135+ Deprecated: Using null as an array offset is deprecated, use an empty string instead in %s on line %d
136+ bool(true)
89137Done
0 commit comments