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