--TEST-- Bug #77569 (Write Access Violation in DomImplementation) --SKIPIF-- --FILE-- createDocument("", ""); try { $dom->encoding = null; } catch (\ValueError $e) { echo $e->getMessage() . \PHP_EOL; } ?> --EXPECT-- Invalid document encoding