xref: /PHP-8.3/ext/xmlwriter/tests/bug71536.phpt (revision 74859783)
1--TEST--
2Bug #71536 (Access Violation crashes php-cgi.exe)
3--EXTENSIONS--
4xmlwriter
5--FILE--
6<?php
7class Test {
8    public static function init()
9    {
10        $xml = new \XMLWriter();
11        $xml->openUri('php://memory');
12        $xml->setIndent(false);
13        $xml->startDocument('1.0', 'UTF-8');
14        $xml->startElement('response');
15        die('now'); // crashed with die()
16    }
17}
18
19Test::init();
20?>
21--EXPECT--
22now
23