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