bug77569.phpt 307 B

12345678910111213141516
  1. --TEST--
  2. Bug #77569 (Write Access Violation in DomImplementation)
  3. --EXTENSIONS--
  4. dom
  5. --FILE--
  6. <?php
  7. $imp = new DOMImplementation;
  8. $dom = $imp->createDocument("", "");
  9. try {
  10. $dom->encoding = null;
  11. } catch (\ValueError $e) {
  12. echo $e->getMessage() . \PHP_EOL;
  13. }
  14. ?>
  15. --EXPECT--
  16. Invalid document encoding