xref: /PHP-8.2/ext/xml/tests/bug78563.phpt (revision 8567bc10)
1--TEST--
2Bug #78563: parsers should not be clonable
3--EXTENSIONS--
4xml
5--FILE--
6<?php
7
8$parser = xml_parser_create();
9clone $parser;
10
11?>
12===DONE===
13--EXPECTF--
14Fatal error: Uncaught Error: Trying to clone an uncloneable object of class XMLParser in %s:%d
15Stack trace:
16#0 {main}
17  thrown in %s on line %d
18