xref: /PHP-7.4/ext/xml/tests/bug79922.phpt (revision 0af3f493)
1--TEST--
2Bug #79922 (Crash after multiple calls to xml_parser_free())
3--SKIPIF--
4<?php
5if (!extension_loaded('xml')) die('skip xml extension not available');
6?>
7--FILE--
8<?php
9$c=xml_parser_create_ns();
10$a=xml_parser_free($c);
11$a=xml_parser_free($c);
12$c=0;
13var_dump($a);
14?>
15--EXPECTF--
16Warning: xml_parser_free(): supplied resource is not a valid XML Parser resource in %s on line %d
17bool(false)
18