@@ -100,8 +100,7 @@ HERE;
100
100
101
101
$ parser = xml_parser_create (NULL );
102
102
xml_parser_set_option ($ parser , XML_OPTION_CASE_FOLDING , 0 );
103
- xml_set_object ($ parser , $ this );
104
- xml_set_element_handler ($ parser , "start_element " , "end_element " );
103
+ xml_set_element_handler ($ parser , $ this ->start_element (...), $ this ->end_element (...));
105
104
106
105
if ($ this ->chunk_size == 0 ) {
107
106
$ success = @xml_parse ($ parser , $ data , true );
@@ -166,10 +165,6 @@ foreach ($suite as $testcase) {
166
165
?>
167
166
--EXPECTF--
168
167
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
173
168
Encoding: UTF-8
174
169
XML Prologue: present
175
170
Chunk size: all data at once
@@ -182,10 +177,6 @@ array(3) {
182
177
[2]=>
183
178
string(42) "e38386e382b9e383883ae38386e382b9e3838833: "
184
179
}
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
189
180
Encoding: UTF-8
190
181
XML Prologue: not present
191
182
Chunk size: all data at once
@@ -198,10 +189,6 @@ array(3) {
198
189
[2]=>
199
190
string(42) "e38386e382b9e383883ae38386e382b9e3838833: "
200
191
}
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
205
192
Encoding: UTF-8
206
193
XML Prologue: present
207
194
Chunk size: all data at once
@@ -214,10 +201,6 @@ array(3) {
214
201
[2]=>
215
202
string(42) "e38386e382b9e383883ae38386e382b9e3838833: "
216
203
}
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
221
204
Encoding: UTF-8
222
205
XML Prologue: not present
223
206
Chunk size: all data at once
@@ -230,10 +213,6 @@ array(3) {
230
213
[2]=>
231
214
string(42) "e38386e382b9e383883ae38386e382b9e3838833: "
232
215
}
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
237
216
Encoding: UTF-16BE
238
217
XML Prologue: present
239
218
Chunk size: all data at once
@@ -246,10 +225,6 @@ array(3) {
246
225
[2]=>
247
226
string(42) "e38386e382b9e383883ae38386e382b9e3838833: "
248
227
}
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
253
228
Encoding: UTF-16BE
254
229
XML Prologue: present
255
230
Chunk size: all data at once
@@ -262,10 +237,6 @@ array(3) {
262
237
[2]=>
263
238
string(42) "e38386e382b9e383883ae38386e382b9e3838833: "
264
239
}
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
269
240
Encoding: UTF-16BE
270
241
XML Prologue: not present
271
242
Chunk size: all data at once
@@ -278,10 +249,6 @@ array(3) {
278
249
[2]=>
279
250
string(42) "e38386e382b9e383883ae38386e382b9e3838833: "
280
251
}
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
285
252
Encoding: UTF-16LE
286
253
XML Prologue: present
287
254
Chunk size: all data at once
@@ -294,10 +261,6 @@ array(3) {
294
261
[2]=>
295
262
string(42) "e38386e382b9e383883ae38386e382b9e3838833: "
296
263
}
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
301
264
Encoding: UTF-16LE
302
265
XML Prologue: present
303
266
Chunk size: all data at once
@@ -310,10 +273,6 @@ array(3) {
310
273
[2]=>
311
274
string(42) "e38386e382b9e383883ae38386e382b9e3838833: "
312
275
}
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
317
276
Encoding: UTF-16LE
318
277
XML Prologue: not present
319
278
Chunk size: all data at once
@@ -326,10 +285,6 @@ array(3) {
326
285
[2]=>
327
286
string(42) "e38386e382b9e383883ae38386e382b9e3838833: "
328
287
}
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
333
288
Encoding: UTF-8
334
289
XML Prologue: present
335
290
Chunk size: 1 byte(s)
@@ -342,10 +297,6 @@ array(3) {
342
297
[2]=>
343
298
string(42) "e38386e382b9e383883ae38386e382b9e3838833: "
344
299
}
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
349
300
Encoding: UTF-8
350
301
XML Prologue: not present
351
302
Chunk size: 1 byte(s)
@@ -358,10 +309,6 @@ array(3) {
358
309
[2]=>
359
310
string(42) "e38386e382b9e383883ae38386e382b9e3838833: "
360
311
}
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
365
312
Encoding: UTF-8
366
313
XML Prologue: present
367
314
Chunk size: 1 byte(s)
@@ -374,10 +321,6 @@ array(3) {
374
321
[2]=>
375
322
string(42) "e38386e382b9e383883ae38386e382b9e3838833: "
376
323
}
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
381
324
Encoding: UTF-8
382
325
XML Prologue: not present
383
326
Chunk size: 1 byte(s)
@@ -390,10 +333,6 @@ array(3) {
390
333
[2]=>
391
334
string(42) "e38386e382b9e383883ae38386e382b9e3838833: "
392
335
}
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
397
336
Encoding: UTF-16BE
398
337
XML Prologue: present
399
338
Chunk size: 1 byte(s)
@@ -406,10 +345,6 @@ array(3) {
406
345
[2]=>
407
346
string(42) "e38386e382b9e383883ae38386e382b9e3838833: "
408
347
}
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
413
348
Encoding: UTF-16BE
414
349
XML Prologue: present
415
350
Chunk size: 1 byte(s)
@@ -422,10 +357,6 @@ array(3) {
422
357
[2]=>
423
358
string(42) "e38386e382b9e383883ae38386e382b9e3838833: "
424
359
}
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
429
360
Encoding: UTF-16BE
430
361
XML Prologue: not present
431
362
Chunk size: 1 byte(s)
@@ -438,10 +369,6 @@ array(3) {
438
369
[2]=>
439
370
string(42) "e38386e382b9e383883ae38386e382b9e3838833: "
440
371
}
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
445
372
Encoding: UTF-16LE
446
373
XML Prologue: present
447
374
Chunk size: 1 byte(s)
@@ -454,10 +381,6 @@ array(3) {
454
381
[2]=>
455
382
string(42) "e38386e382b9e383883ae38386e382b9e3838833: "
456
383
}
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
461
384
Encoding: UTF-16LE
462
385
XML Prologue: present
463
386
Chunk size: 1 byte(s)
@@ -470,10 +393,6 @@ array(3) {
470
393
[2]=>
471
394
string(42) "e38386e382b9e383883ae38386e382b9e3838833: "
472
395
}
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
477
396
Encoding: UTF-16LE
478
397
XML Prologue: not present
479
398
Chunk size: 1 byte(s)
0 commit comments