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

Test::init();
?>
--EXPECT--
now