@@ -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,17 @@ empty():
20
20
bool(false)
21
21
null coalesce:
22
22
int(25)
23
+ Reference to dimension:
24
+ Value of reference:
25
+ int(25)
26
+ Value of container dimension after write to reference (should be int(100) if successful):
27
+ int(100)
23
28
unset():
24
29
Nested read:
25
30
26
- Warning: Undefined array key %s in %s on line 62
31
+ Warning: Undefined array key %s in %s on line %d
27
32
28
- Warning: Trying to access array offset on null in %s on line 62
33
+ Warning: Trying to access array offset on null in %s on line %d
29
34
NULL
30
35
Nested write:
31
36
Nested Read-Write:
@@ -43,76 +48,85 @@ $EXPECTED_OUTPUT_VALID_OFFSETS_REGEX = '/^' . expectf_to_regex(EXPECTED_OUTPUT_V
43
48
const EXPECTF_OUTPUT_FLOAT_OFFSETS = <<<OUTPUT
44
49
Read before write:
45
50
46
- Deprecated: Implicit conversion from float %F to int loses precision in %s on line 8
51
+ Deprecated: Implicit conversion from float %F to int loses precision in %s on line %d
47
52
48
- Warning: Undefined array key %s in %s on line 8
53
+ Warning: Undefined array key %s in %s on line %d
49
54
NULL
50
55
Write:
51
56
52
- Deprecated: Implicit conversion from float %F to int loses precision in %s on line 15
57
+ Deprecated: Implicit conversion from float %F to int loses precision in %s on line %d
53
58
Read:
54
59
55
- Deprecated: Implicit conversion from float %F to int loses precision in %s on line 22
60
+ Deprecated: Implicit conversion from float %F to int loses precision in %s on line %d
56
61
int(15)
57
62
Read-Write:
58
63
59
- Deprecated: Implicit conversion from float %F to int loses precision in %s on line 29
64
+ Deprecated: Implicit conversion from float %F to int loses precision in %s on line %d
60
65
isset():
61
66
62
- Deprecated: Implicit conversion from float %F to int loses precision in %s on line 36
67
+ Deprecated: Implicit conversion from float %F to int loses precision in %s on line %d
63
68
bool(true)
64
69
empty():
65
70
66
- Deprecated: Implicit conversion from float %F to int loses precision in %s on line 42
71
+ Deprecated: Implicit conversion from float %F to int loses precision in %s on line %d
67
72
bool(false)
68
73
null coalesce:
69
74
70
- Deprecated: Implicit conversion from float %F to int loses precision in %s on line 48
75
+ Deprecated: Implicit conversion from float %F to int loses precision in %s on line %d
76
+ int(35)
77
+ Reference to dimension:
78
+
79
+ Deprecated: Implicit conversion from float %F to int loses precision in %s on line %d
80
+ Value of reference:
71
81
int(35)
82
+ Value of container dimension after write to reference (should be int(100) if successful):
83
+
84
+ Deprecated: Implicit conversion from float %F to int loses precision in %s on line %d
85
+ int(100)
72
86
unset():
73
87
74
- Deprecated: Implicit conversion from float %F to int loses precision in %s on line 55
88
+ Deprecated: Implicit conversion from float %F to int loses precision in %s on line %d
75
89
Nested read:
76
90
77
- Deprecated: Implicit conversion from float %F to int loses precision in %s on line 62
91
+ Deprecated: Implicit conversion from float %F to int loses precision in %s on line %d
78
92
79
- Warning: Undefined array key 0 in %s on line 62
93
+ Warning: Undefined array key 0 in %s on line %d
80
94
81
- Warning: Trying to access array offset on null in %s on line 62
95
+ Warning: Trying to access array offset on null in %s on line %d
82
96
NULL
83
97
Nested write:
84
98
85
- Deprecated: Implicit conversion from float %F to int loses precision in %s on line 69
99
+ Deprecated: Implicit conversion from float %F to int loses precision in %s on line %d
86
100
87
- Deprecated: Implicit conversion from float %F to int loses precision in %s on line 69
101
+ Deprecated: Implicit conversion from float %F to int loses precision in %s on line %d
88
102
Nested Read-Write:
89
103
90
- Deprecated: Implicit conversion from float %F to int loses precision in %s on line 76
104
+ Deprecated: Implicit conversion from float %F to int loses precision in %s on line %d
91
105
92
- Deprecated: Implicit conversion from float %F to int loses precision in %s on line 76
106
+ Deprecated: Implicit conversion from float %F to int loses precision in %s on line %d
93
107
Nested isset():
94
108
95
- Deprecated: Implicit conversion from float %F to int loses precision in %s on line 83
109
+ Deprecated: Implicit conversion from float %F to int loses precision in %s on line %d
96
110
97
- Deprecated: Implicit conversion from float %F to int loses precision in %s on line 83
111
+ Deprecated: Implicit conversion from float %F to int loses precision in %s on line %d
98
112
bool(true)
99
113
Nested empty():
100
114
101
- Deprecated: Implicit conversion from float %F to int loses precision in %s on line 89
115
+ Deprecated: Implicit conversion from float %F to int loses precision in %s on line %d
102
116
103
- Deprecated: Implicit conversion from float %F to int loses precision in %s on line 89
117
+ Deprecated: Implicit conversion from float %F to int loses precision in %s on line %d
104
118
bool(false)
105
119
Nested null coalesce:
106
120
107
- Deprecated: Implicit conversion from float %F to int loses precision in %s on line 95
121
+ Deprecated: Implicit conversion from float %F to int loses precision in %s on line %d
108
122
109
- Deprecated: Implicit conversion from float %F to int loses precision in %s on line 95
123
+ Deprecated: Implicit conversion from float %F to int loses precision in %s on line %d
110
124
int(25)
111
125
Nested unset():
112
126
113
- Deprecated: Implicit conversion from float %F to int loses precision in %s on line 102
127
+ Deprecated: Implicit conversion from float %F to int loses precision in %s on line %d
114
128
115
- Deprecated: Implicit conversion from float %F to int loses precision in %s on line 102
129
+ Deprecated: Implicit conversion from float %F to int loses precision in %s on line %d
116
130
117
131
OUTPUT ;
118
132
@@ -133,6 +147,8 @@ empty():
133
147
Cannot access offset of type %s in isset or empty
134
148
null coalesce:
135
149
Cannot access offset of type %s in isset or empty
150
+ Reference to dimension:
151
+ Cannot access offset of type %s on ArrayObject
136
152
unset():
137
153
Cannot unset offset of type %s on ArrayObject
138
154
Nested read:
@@ -149,7 +165,7 @@ Nested null coalesce:
149
165
Cannot access offset of type %s in isset or empty
150
166
Nested unset():
151
167
152
- Notice: Indirect modification of overloaded element of ArrayObject has no effect in %s on line 102
168
+ Notice: Indirect modification of overloaded element of ArrayObject has no effect in %s on line %d
153
169
Cannot unset offset of type %s on ArrayObject
154
170
155
171
OUTPUT ;
@@ -175,12 +191,17 @@ empty():
175
191
bool(true)
176
192
null coalesce:
177
193
string(7) "default"
194
+ Reference to dimension:
195
+ Value of reference:
196
+ NULL
197
+ Value of container dimension after write to reference (should be int(100) if successful):
198
+ int(100)
178
199
unset():
179
200
Nested read:
180
201
181
- Warning: Undefined array key "" in %s on line 62
202
+ Warning: Undefined array key "" in %s on line 74
182
203
183
- Warning: Trying to access array offset on null in %s on line 62
204
+ Warning: Trying to access array offset on null in %s on line 74
184
205
NULL
185
206
Nested write:
186
207
Nested Read-Write:
@@ -225,50 +246,59 @@ null coalesce:
225
246
226
247
Warning: Resource ID#3 used as offset, casting to integer (3) in %s on line 48
227
248
int(25)
228
- unset() :
249
+ Reference to dimension :
229
250
230
251
Warning: Resource ID#3 used as offset, casting to integer (3) in %s on line 55
252
+ Value of reference:
253
+ int(25)
254
+ Value of container dimension after write to reference (should be int(100) if successful):
255
+
256
+ Warning: Resource ID#3 used as offset, casting to integer (3) in %s on line 60
257
+ int(100)
258
+ unset():
259
+
260
+ Warning: Resource ID#3 used as offset, casting to integer (3) in %s on line 67
231
261
Nested read:
232
262
233
- Warning: Resource ID#3 used as offset, casting to integer (3) in %s on line 62
263
+ Warning: Resource ID#3 used as offset, casting to integer (3) in %s on line 74
234
264
235
- Warning: Undefined array key 3 in %s on line 62
265
+ Warning: Undefined array key 3 in %s on line 74
236
266
237
- Warning: Trying to access array offset on null in %s on line 62
267
+ Warning: Trying to access array offset on null in %s on line 74
238
268
NULL
239
269
Nested write:
240
270
241
- Warning: Resource ID#3 used as offset, casting to integer (3) in %s on line 69
271
+ Warning: Resource ID#3 used as offset, casting to integer (3) in %s on line 81
242
272
243
- Warning: Resource ID#3 used as offset, casting to integer (3) in %s on line 69
273
+ Warning: Resource ID#3 used as offset, casting to integer (3) in %s on line 81
244
274
Nested Read-Write:
245
275
246
- Warning: Resource ID#3 used as offset, casting to integer (3) in %s on line 76
276
+ Warning: Resource ID#3 used as offset, casting to integer (3) in %s on line 88
247
277
248
- Warning: Resource ID#3 used as offset, casting to integer (3) in %s on line 76
278
+ Warning: Resource ID#3 used as offset, casting to integer (3) in %s on line 88
249
279
Nested isset():
250
280
251
- Warning: Resource ID#3 used as offset, casting to integer (3) in %s on line 83
281
+ Warning: Resource ID#3 used as offset, casting to integer (3) in %s on line 95
252
282
253
- Warning: Resource ID#3 used as offset, casting to integer (3) in %s on line 83
283
+ Warning: Resource ID#3 used as offset, casting to integer (3) in %s on line 95
254
284
bool(true)
255
285
Nested empty():
256
286
257
- Warning: Resource ID#3 used as offset, casting to integer (3) in %s on line 89
287
+ Warning: Resource ID#3 used as offset, casting to integer (3) in %s on line 101
258
288
259
- Warning: Resource ID#3 used as offset, casting to integer (3) in %s on line 89
289
+ Warning: Resource ID#3 used as offset, casting to integer (3) in %s on line 101
260
290
bool(false)
261
291
Nested null coalesce:
262
292
263
- Warning: Resource ID#3 used as offset, casting to integer (3) in %s on line 95
293
+ Warning: Resource ID#3 used as offset, casting to integer (3) in %s on line 107
264
294
265
- Warning: Resource ID#3 used as offset, casting to integer (3) in %s on line 95
295
+ Warning: Resource ID#3 used as offset, casting to integer (3) in %s on line 107
266
296
int(30)
267
297
Nested unset():
268
298
269
- Warning: Resource ID#3 used as offset, casting to integer (3) in %s on line 102
299
+ Warning: Resource ID#3 used as offset, casting to integer (3) in %s on line 114
270
300
271
- Warning: Resource ID#3 used as offset, casting to integer (3) in %s on line 102
301
+ Warning: Resource ID#3 used as offset, casting to integer (3) in %s on line 114
272
302
273
303
OUTPUT ;
274
304
0 commit comments