xref: /PHP-8.0/ext/xml/tests/bug78563.phpt (revision a55402d0)
1--TEST--
2Bug #78563: parsers should not be clonable
3--SKIPIF--
4<?php include("skipif.inc"); ?>
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