xref: /PHP-7.4/ext/dom/tests/bug77569.phpt (revision 8308196c)
1--TEST--
2Bug #77569 (Write Access Violation in DomImplementation)
3--SKIPIF--
4<?php
5if (!extension_loaded('dom')) die('skip dom extension not available');
6?>
7--FILE--
8<?php
9$imp = new DOMImplementation;
10$dom = $imp->createDocument("", "");
11$dom->encoding = null;
12?>
13--EXPECTF--
14Warning: main(): Invalid Document Encoding in %s on line %d
15