summaryrefslogtreecommitdiff
path: root/ext/xml/tests/bug78563.phpt
blob: a69b7b539a4b5df0c910534c43514a6986d379e6 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
--TEST--
Bug #78563: parsers should not be clonable
--SKIPIF--
<?php include("skipif.inc"); ?>
--FILE--
<?php

$parser = xml_parser_create();
clone $parser;

?>
===DONE===
--EXPECTF--
Fatal error: Uncaught Error: Trying to clone an uncloneable object of class XMLParser in %s:%d
Stack trace:
#0 {main}
  thrown in %s on line %d