Skip to content

Commit 5d8b340

Browse files
committed
Fix tests
1 parent efd4b4d commit 5d8b340

File tree

2 files changed

+82
-1
lines changed

2 files changed

+82
-1
lines changed

Zend/tests/bug34617.phpt

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,5 +15,6 @@ function boom()
1515
}
1616
boom();
1717
?>
18-
--EXPECT--
18+
--EXPECTF--
19+
Deprecated: Function xml_set_object() is deprecated since 8.4, provide a proper method callable to xml_set_*_handler() functions in %s on line %d
1920
ok

ext/xml/tests/bug32001.phpt

Lines changed: 80 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -166,6 +166,10 @@ foreach ($suite as $testcase) {
166166
?>
167167
--EXPECTF--
168168
libxml2 Version => %s
169+
170+
Deprecated: Function xml_set_object() is deprecated since 8.4, provide a proper method callable to xml_set_*_handler() functions in %s on line %d
171+
172+
Deprecated: xml_set_element_handler(): Passing non-callable strings is deprecated since 8.4 in %s on line %d
169173
Encoding: UTF-8
170174
XML Prologue: present
171175
Chunk size: all data at once
@@ -178,6 +182,10 @@ array(3) {
178182
[2]=>
179183
string(42) "e38386e382b9e383883ae38386e382b9e3838833: "
180184
}
185+
186+
Deprecated: Function xml_set_object() is deprecated since 8.4, provide a proper method callable to xml_set_*_handler() functions in %s on line %d
187+
188+
Deprecated: xml_set_element_handler(): Passing non-callable strings is deprecated since 8.4 in %s on line %d
181189
Encoding: UTF-8
182190
XML Prologue: not present
183191
Chunk size: all data at once
@@ -190,6 +198,10 @@ array(3) {
190198
[2]=>
191199
string(42) "e38386e382b9e383883ae38386e382b9e3838833: "
192200
}
201+
202+
Deprecated: Function xml_set_object() is deprecated since 8.4, provide a proper method callable to xml_set_*_handler() functions in %s on line %d
203+
204+
Deprecated: xml_set_element_handler(): Passing non-callable strings is deprecated since 8.4 in %s on line %d
193205
Encoding: UTF-8
194206
XML Prologue: present
195207
Chunk size: all data at once
@@ -202,6 +214,10 @@ array(3) {
202214
[2]=>
203215
string(42) "e38386e382b9e383883ae38386e382b9e3838833: "
204216
}
217+
218+
Deprecated: Function xml_set_object() is deprecated since 8.4, provide a proper method callable to xml_set_*_handler() functions in %s on line %d
219+
220+
Deprecated: xml_set_element_handler(): Passing non-callable strings is deprecated since 8.4 in %s on line %d
205221
Encoding: UTF-8
206222
XML Prologue: not present
207223
Chunk size: all data at once
@@ -214,6 +230,10 @@ array(3) {
214230
[2]=>
215231
string(42) "e38386e382b9e383883ae38386e382b9e3838833: "
216232
}
233+
234+
Deprecated: Function xml_set_object() is deprecated since 8.4, provide a proper method callable to xml_set_*_handler() functions in %s on line %d
235+
236+
Deprecated: xml_set_element_handler(): Passing non-callable strings is deprecated since 8.4 in %s on line %d
217237
Encoding: UTF-16BE
218238
XML Prologue: present
219239
Chunk size: all data at once
@@ -226,6 +246,10 @@ array(3) {
226246
[2]=>
227247
string(42) "e38386e382b9e383883ae38386e382b9e3838833: "
228248
}
249+
250+
Deprecated: Function xml_set_object() is deprecated since 8.4, provide a proper method callable to xml_set_*_handler() functions in %s on line %d
251+
252+
Deprecated: xml_set_element_handler(): Passing non-callable strings is deprecated since 8.4 in %s on line %d
229253
Encoding: UTF-16BE
230254
XML Prologue: present
231255
Chunk size: all data at once
@@ -238,6 +262,10 @@ array(3) {
238262
[2]=>
239263
string(42) "e38386e382b9e383883ae38386e382b9e3838833: "
240264
}
265+
266+
Deprecated: Function xml_set_object() is deprecated since 8.4, provide a proper method callable to xml_set_*_handler() functions in %s on line %d
267+
268+
Deprecated: xml_set_element_handler(): Passing non-callable strings is deprecated since 8.4 in %s on line %d
241269
Encoding: UTF-16BE
242270
XML Prologue: not present
243271
Chunk size: all data at once
@@ -250,6 +278,10 @@ array(3) {
250278
[2]=>
251279
string(42) "e38386e382b9e383883ae38386e382b9e3838833: "
252280
}
281+
282+
Deprecated: Function xml_set_object() is deprecated since 8.4, provide a proper method callable to xml_set_*_handler() functions in %s on line %d
283+
284+
Deprecated: xml_set_element_handler(): Passing non-callable strings is deprecated since 8.4 in %s on line %d
253285
Encoding: UTF-16LE
254286
XML Prologue: present
255287
Chunk size: all data at once
@@ -262,6 +294,10 @@ array(3) {
262294
[2]=>
263295
string(42) "e38386e382b9e383883ae38386e382b9e3838833: "
264296
}
297+
298+
Deprecated: Function xml_set_object() is deprecated since 8.4, provide a proper method callable to xml_set_*_handler() functions in %s on line %d
299+
300+
Deprecated: xml_set_element_handler(): Passing non-callable strings is deprecated since 8.4 in %s on line %d
265301
Encoding: UTF-16LE
266302
XML Prologue: present
267303
Chunk size: all data at once
@@ -274,6 +310,10 @@ array(3) {
274310
[2]=>
275311
string(42) "e38386e382b9e383883ae38386e382b9e3838833: "
276312
}
313+
314+
Deprecated: Function xml_set_object() is deprecated since 8.4, provide a proper method callable to xml_set_*_handler() functions in %s on line %d
315+
316+
Deprecated: xml_set_element_handler(): Passing non-callable strings is deprecated since 8.4 in %s on line %d
277317
Encoding: UTF-16LE
278318
XML Prologue: not present
279319
Chunk size: all data at once
@@ -286,6 +326,10 @@ array(3) {
286326
[2]=>
287327
string(42) "e38386e382b9e383883ae38386e382b9e3838833: "
288328
}
329+
330+
Deprecated: Function xml_set_object() is deprecated since 8.4, provide a proper method callable to xml_set_*_handler() functions in %s on line %d
331+
332+
Deprecated: xml_set_element_handler(): Passing non-callable strings is deprecated since 8.4 in %s on line %d
289333
Encoding: UTF-8
290334
XML Prologue: present
291335
Chunk size: 1 byte(s)
@@ -298,6 +342,10 @@ array(3) {
298342
[2]=>
299343
string(42) "e38386e382b9e383883ae38386e382b9e3838833: "
300344
}
345+
346+
Deprecated: Function xml_set_object() is deprecated since 8.4, provide a proper method callable to xml_set_*_handler() functions in %s on line %d
347+
348+
Deprecated: xml_set_element_handler(): Passing non-callable strings is deprecated since 8.4 in %s on line %d
301349
Encoding: UTF-8
302350
XML Prologue: not present
303351
Chunk size: 1 byte(s)
@@ -310,6 +358,10 @@ array(3) {
310358
[2]=>
311359
string(42) "e38386e382b9e383883ae38386e382b9e3838833: "
312360
}
361+
362+
Deprecated: Function xml_set_object() is deprecated since 8.4, provide a proper method callable to xml_set_*_handler() functions in %s on line %d
363+
364+
Deprecated: xml_set_element_handler(): Passing non-callable strings is deprecated since 8.4 in %s on line %d
313365
Encoding: UTF-8
314366
XML Prologue: present
315367
Chunk size: 1 byte(s)
@@ -322,6 +374,10 @@ array(3) {
322374
[2]=>
323375
string(42) "e38386e382b9e383883ae38386e382b9e3838833: "
324376
}
377+
378+
Deprecated: Function xml_set_object() is deprecated since 8.4, provide a proper method callable to xml_set_*_handler() functions in %s on line %d
379+
380+
Deprecated: xml_set_element_handler(): Passing non-callable strings is deprecated since 8.4 in %s on line %d
325381
Encoding: UTF-8
326382
XML Prologue: not present
327383
Chunk size: 1 byte(s)
@@ -334,6 +390,10 @@ array(3) {
334390
[2]=>
335391
string(42) "e38386e382b9e383883ae38386e382b9e3838833: "
336392
}
393+
394+
Deprecated: Function xml_set_object() is deprecated since 8.4, provide a proper method callable to xml_set_*_handler() functions in %s on line %d
395+
396+
Deprecated: xml_set_element_handler(): Passing non-callable strings is deprecated since 8.4 in %s on line %d
337397
Encoding: UTF-16BE
338398
XML Prologue: present
339399
Chunk size: 1 byte(s)
@@ -346,6 +406,10 @@ array(3) {
346406
[2]=>
347407
string(42) "e38386e382b9e383883ae38386e382b9e3838833: "
348408
}
409+
410+
Deprecated: Function xml_set_object() is deprecated since 8.4, provide a proper method callable to xml_set_*_handler() functions in %s on line %d
411+
412+
Deprecated: xml_set_element_handler(): Passing non-callable strings is deprecated since 8.4 in %s on line %d
349413
Encoding: UTF-16BE
350414
XML Prologue: present
351415
Chunk size: 1 byte(s)
@@ -358,6 +422,10 @@ array(3) {
358422
[2]=>
359423
string(42) "e38386e382b9e383883ae38386e382b9e3838833: "
360424
}
425+
426+
Deprecated: Function xml_set_object() is deprecated since 8.4, provide a proper method callable to xml_set_*_handler() functions in %s on line %d
427+
428+
Deprecated: xml_set_element_handler(): Passing non-callable strings is deprecated since 8.4 in %s on line %d
361429
Encoding: UTF-16BE
362430
XML Prologue: not present
363431
Chunk size: 1 byte(s)
@@ -370,6 +438,10 @@ array(3) {
370438
[2]=>
371439
string(42) "e38386e382b9e383883ae38386e382b9e3838833: "
372440
}
441+
442+
Deprecated: Function xml_set_object() is deprecated since 8.4, provide a proper method callable to xml_set_*_handler() functions in %s on line %d
443+
444+
Deprecated: xml_set_element_handler(): Passing non-callable strings is deprecated since 8.4 in %s on line %d
373445
Encoding: UTF-16LE
374446
XML Prologue: present
375447
Chunk size: 1 byte(s)
@@ -382,6 +454,10 @@ array(3) {
382454
[2]=>
383455
string(42) "e38386e382b9e383883ae38386e382b9e3838833: "
384456
}
457+
458+
Deprecated: Function xml_set_object() is deprecated since 8.4, provide a proper method callable to xml_set_*_handler() functions in %s on line %d
459+
460+
Deprecated: xml_set_element_handler(): Passing non-callable strings is deprecated since 8.4 in %s on line %d
385461
Encoding: UTF-16LE
386462
XML Prologue: present
387463
Chunk size: 1 byte(s)
@@ -394,6 +470,10 @@ array(3) {
394470
[2]=>
395471
string(42) "e38386e382b9e383883ae38386e382b9e3838833: "
396472
}
473+
474+
Deprecated: Function xml_set_object() is deprecated since 8.4, provide a proper method callable to xml_set_*_handler() functions in %s on line %d
475+
476+
Deprecated: xml_set_element_handler(): Passing non-callable strings is deprecated since 8.4 in %s on line %d
397477
Encoding: UTF-16LE
398478
XML Prologue: not present
399479
Chunk size: 1 byte(s)

0 commit comments

Comments
 (0)