xref: /PHP-8.0/Zend/tests/bug34617.phpt (revision 782352c5)
1--TEST--
2Bug #34617 (zend_deactivate: objects_store used after zend_objects_store_destroy is called)
3--SKIPIF--
4<?php if (!extension_loaded("xml")) print "skip the xml extension not available"; ?>
5--FILE--
6<?php
7class Thing {}
8function boom()
9{
10    $reader = xml_parser_create();
11    $thing = new Thing();
12    xml_set_object($reader, $thing);
13    die("ok\n");
14    xml_parser_free($reader);
15}
16boom();
17?>
18--EXPECT--
19ok
20