summaryrefslogtreecommitdiff
path: root/ext/dom/tests/bug77569.phpt
diff options
context:
space:
mode:
Diffstat (limited to 'ext/dom/tests/bug77569.phpt')
-rw-r--r--ext/dom/tests/bug77569.phpt14
1 files changed, 14 insertions, 0 deletions
diff --git a/ext/dom/tests/bug77569.phpt b/ext/dom/tests/bug77569.phpt
new file mode 100644
index 0000000000..f0f3566708
--- /dev/null
+++ b/ext/dom/tests/bug77569.phpt
@@ -0,0 +1,14 @@
+--TEST--
+Bug #77569 (Write Acess Violation in DomImplementation)
+--SKIPIF--
+<?php
+if (!extension_loaded('dom')) die('skip dom extension not available');
+?>
+--FILE--
+<?php
+$imp = new DOMImplementation;
+$dom = $imp->createDocument("", "");
+$dom->encoding = null;
+?>
+--EXPECTF--
+Warning: main(): Invalid Document Encoding in %s on line %d