1--TEST--
2Bug #78563: parsers should not be serializable
3--EXTENSIONS--
4xml
5--FILE--
6<?php
7
8$parser = xml_parser_create();
9serialize($parser);
10
11?>
12===DONE===
13--EXPECTF--
14Fatal error: Uncaught Exception: Serialization of 'XMLParser' is not allowed in %s:%d
15Stack trace:
16#0 %s(%d): serialize(Object(XMLParser))
17#1 {main}
18  thrown in %s on line %d
19