--TEST-- Bug #77569 (Write Access Violation in DomImplementation) --SKIPIF-- --FILE-- createDocument("", ""); $dom->encoding = null; ?> --EXPECTF-- Warning: main(): Invalid Document Encoding in %s on line %d