@@ -8,7 +8,7 @@ require_once __DIR__ . DIRECTORY_SEPARATOR . 'test_offset_helpers.inc';
8
8
const EXPECTED_OUTPUT_VALID_OFFSETS = <<<OUTPUT
9
9
Read before write:
10
10
11
- Warning: Undefined array key %s in %s on line 8
11
+ Warning: Undefined array key %s in %s on line %d
12
12
NULL
13
13
Write:
14
14
Read:
@@ -20,12 +20,14 @@ empty():
20
20
bool(false)
21
21
null coalesce:
22
22
int(25)
23
+ Reference to dimension:
24
+ int(25)
23
25
unset():
24
26
Nested read:
25
27
26
- Warning: Undefined array key %s in %s on line 62
28
+ Warning: Undefined array key %s in %s on line %d
27
29
28
- Warning: Trying to access array offset on null in %s on line 62
30
+ Warning: Trying to access array offset on null in %s on line %d
29
31
NULL
30
32
Nested write:
31
33
Nested Read-Write:
@@ -43,76 +45,80 @@ $EXPECTED_OUTPUT_VALID_OFFSETS_REGEX = '/^' . expectf_to_regex(EXPECTED_OUTPUT_V
43
45
const EXPECTF_OUTPUT_FLOAT_OFFSETS = <<<OUTPUT
44
46
Read before write:
45
47
46
- Deprecated: Implicit conversion from float %F to int loses precision in %s on line 8
48
+ Deprecated: Implicit conversion from float %F to int loses precision in %s on line %d
47
49
48
- Warning: Undefined array key %s in %s on line 8
50
+ Warning: Undefined array key %s in %s on line %d
49
51
NULL
50
52
Write:
51
53
52
- Deprecated: Implicit conversion from float %F to int loses precision in %s on line 15
54
+ Deprecated: Implicit conversion from float %F to int loses precision in %s on line %d
53
55
Read:
54
56
55
- Deprecated: Implicit conversion from float %F to int loses precision in %s on line 22
57
+ Deprecated: Implicit conversion from float %F to int loses precision in %s on line %d
56
58
int(15)
57
59
Read-Write:
58
60
59
- Deprecated: Implicit conversion from float %F to int loses precision in %s on line 29
61
+ Deprecated: Implicit conversion from float %F to int loses precision in %s on line %d
60
62
isset():
61
63
62
- Deprecated: Implicit conversion from float %F to int loses precision in %s on line 36
64
+ Deprecated: Implicit conversion from float %F to int loses precision in %s on line %d
63
65
bool(true)
64
66
empty():
65
67
66
- Deprecated: Implicit conversion from float %F to int loses precision in %s on line 42
68
+ Deprecated: Implicit conversion from float %F to int loses precision in %s on line %d
67
69
bool(false)
68
70
null coalesce:
69
71
70
- Deprecated: Implicit conversion from float %F to int loses precision in %s on line 48
72
+ Deprecated: Implicit conversion from float %F to int loses precision in %s on line %d
73
+ int(35)
74
+ Reference to dimension:
75
+
76
+ Deprecated: Implicit conversion from float %F to int loses precision in %s on line %d
71
77
int(35)
72
78
unset():
73
79
74
- Deprecated: Implicit conversion from float %F to int loses precision in %s on line 55
80
+ Deprecated: Implicit conversion from float %F to int loses precision in %s on line %d
75
81
Nested read:
76
82
77
- Deprecated: Implicit conversion from float %F to int loses precision in %s on line 62
83
+ Deprecated: Implicit conversion from float %F to int loses precision in %s on line %d
78
84
79
- Warning: Undefined array key 0 in %s on line 62
85
+ Warning: Undefined array key 0 in %s on line %d
80
86
81
- Warning: Trying to access array offset on null in %s on line 62
87
+ Warning: Trying to access array offset on null in %s on line %d
82
88
NULL
83
89
Nested write:
84
90
85
- Deprecated: Implicit conversion from float %F to int loses precision in %s on line 69
91
+ Deprecated: Implicit conversion from float %F to int loses precision in %s on line %d
86
92
87
- Deprecated: Implicit conversion from float %F to int loses precision in %s on line 69
93
+ Deprecated: Implicit conversion from float %F to int loses precision in %s on line %d
88
94
Nested Read-Write:
89
95
90
- Deprecated: Implicit conversion from float %F to int loses precision in %s on line 76
96
+ Deprecated: Implicit conversion from float %F to int loses precision in %s on line %d
91
97
92
- Deprecated: Implicit conversion from float %F to int loses precision in %s on line 76
98
+ Deprecated: Implicit conversion from float %F to int loses precision in %s on line %d
93
99
Nested isset():
94
100
95
- Deprecated: Implicit conversion from float %F to int loses precision in %s on line 83
101
+ Deprecated: Implicit conversion from float %F to int loses precision in %s on line %d
96
102
97
- Deprecated: Implicit conversion from float %F to int loses precision in %s on line 83
103
+ Deprecated: Implicit conversion from float %F to int loses precision in %s on line %d
98
104
bool(true)
99
105
Nested empty():
100
106
101
- Deprecated: Implicit conversion from float %F to int loses precision in %s on line 89
107
+ Deprecated: Implicit conversion from float %F to int loses precision in %s on line %d
102
108
103
- Deprecated: Implicit conversion from float %F to int loses precision in %s on line 89
109
+ Deprecated: Implicit conversion from float %F to int loses precision in %s on line %d
104
110
bool(false)
105
111
Nested null coalesce:
106
112
107
- Deprecated: Implicit conversion from float %F to int loses precision in %s on line 95
113
+ Deprecated: Implicit conversion from float %F to int loses precision in %s on line %d
108
114
109
- Deprecated: Implicit conversion from float %F to int loses precision in %s on line 95
115
+ Deprecated: Implicit conversion from float %F to int loses precision in %s on line %d
110
116
int(25)
111
117
Nested unset():
112
118
113
- Deprecated: Implicit conversion from float %F to int loses precision in %s on line 102
119
+ Deprecated: Implicit conversion from float %F to int loses precision in %s on line %d
114
120
115
- Deprecated: Implicit conversion from float %F to int loses precision in %s on line 102
121
+ Deprecated: Implicit conversion from float %F to int loses precision in %s on line %d
116
122
117
123
OUTPUT ;
118
124
@@ -133,6 +139,8 @@ empty():
133
139
Cannot access offset of type %s in isset or empty
134
140
null coalesce:
135
141
Cannot access offset of type %s in isset or empty
142
+ Reference to dimension:
143
+ Cannot access offset of type %s on ArrayObject
136
144
unset():
137
145
Cannot unset offset of type %s on ArrayObject
138
146
Nested read:
@@ -149,7 +157,7 @@ Nested null coalesce:
149
157
Cannot access offset of type %s in isset or empty
150
158
Nested unset():
151
159
152
- Notice: Indirect modification of overloaded element of ArrayObject has no effect in %s on line 102
160
+ Notice: Indirect modification of overloaded element of ArrayObject has no effect in %s on line %d
153
161
Cannot unset offset of type %s on ArrayObject
154
162
155
163
OUTPUT ;
@@ -175,12 +183,14 @@ empty():
175
183
bool(true)
176
184
null coalesce:
177
185
string(7) "default"
186
+ Reference to dimension:
187
+ NULL
178
188
unset():
179
189
Nested read:
180
190
181
- Warning: Undefined array key "" in %s on line 62
191
+ Warning: Undefined array key "" in %s on line 70
182
192
183
- Warning: Trying to access array offset on null in %s on line 62
193
+ Warning: Trying to access array offset on null in %s on line 70
184
194
NULL
185
195
Nested write:
186
196
Nested Read-Write:
@@ -225,50 +235,54 @@ null coalesce:
225
235
226
236
Warning: Resource ID#3 used as offset, casting to integer (3) in %s on line 48
227
237
int(25)
228
- unset() :
238
+ Reference to dimension :
229
239
230
240
Warning: Resource ID#3 used as offset, casting to integer (3) in %s on line 55
241
+ int(25)
242
+ unset():
243
+
244
+ Warning: Resource ID#3 used as offset, casting to integer (3) in %s on line 63
231
245
Nested read:
232
246
233
- Warning: Resource ID#3 used as offset, casting to integer (3) in %s on line 62
247
+ Warning: Resource ID#3 used as offset, casting to integer (3) in %s on line 70
234
248
235
- Warning: Undefined array key 3 in %s on line 62
249
+ Warning: Undefined array key 3 in %s on line 70
236
250
237
- Warning: Trying to access array offset on null in %s on line 62
251
+ Warning: Trying to access array offset on null in %s on line 70
238
252
NULL
239
253
Nested write:
240
254
241
- Warning: Resource ID#3 used as offset, casting to integer (3) in %s on line 69
255
+ Warning: Resource ID#3 used as offset, casting to integer (3) in %s on line 77
242
256
243
- Warning: Resource ID#3 used as offset, casting to integer (3) in %s on line 69
257
+ Warning: Resource ID#3 used as offset, casting to integer (3) in %s on line 77
244
258
Nested Read-Write:
245
259
246
- Warning: Resource ID#3 used as offset, casting to integer (3) in %s on line 76
260
+ Warning: Resource ID#3 used as offset, casting to integer (3) in %s on line 84
247
261
248
- Warning: Resource ID#3 used as offset, casting to integer (3) in %s on line 76
262
+ Warning: Resource ID#3 used as offset, casting to integer (3) in %s on line 84
249
263
Nested isset():
250
264
251
- Warning: Resource ID#3 used as offset, casting to integer (3) in %s on line 83
265
+ Warning: Resource ID#3 used as offset, casting to integer (3) in %s on line 91
252
266
253
- Warning: Resource ID#3 used as offset, casting to integer (3) in %s on line 83
267
+ Warning: Resource ID#3 used as offset, casting to integer (3) in %s on line 91
254
268
bool(true)
255
269
Nested empty():
256
270
257
- Warning: Resource ID#3 used as offset, casting to integer (3) in %s on line 89
271
+ Warning: Resource ID#3 used as offset, casting to integer (3) in %s on line 97
258
272
259
- Warning: Resource ID#3 used as offset, casting to integer (3) in %s on line 89
273
+ Warning: Resource ID#3 used as offset, casting to integer (3) in %s on line 97
260
274
bool(false)
261
275
Nested null coalesce:
262
276
263
- Warning: Resource ID#3 used as offset, casting to integer (3) in %s on line 95
277
+ Warning: Resource ID#3 used as offset, casting to integer (3) in %s on line 103
264
278
265
- Warning: Resource ID#3 used as offset, casting to integer (3) in %s on line 95
279
+ Warning: Resource ID#3 used as offset, casting to integer (3) in %s on line 103
266
280
int(30)
267
281
Nested unset():
268
282
269
- Warning: Resource ID#3 used as offset, casting to integer (3) in %s on line 102
283
+ Warning: Resource ID#3 used as offset, casting to integer (3) in %s on line 110
270
284
271
- Warning: Resource ID#3 used as offset, casting to integer (3) in %s on line 102
285
+ Warning: Resource ID#3 used as offset, casting to integer (3) in %s on line 110
272
286
273
287
OUTPUT ;
274
288
0 commit comments