--TEST-- Ensure that Dom\Node::$prefix is read-only --EXTENSIONS-- dom --FILE-- createElement('div'); try { $div->prefix = "foo"; } catch (Error $e) { echo $e->getMessage(), "\n"; } echo $dom->saveXml(); ?> --EXPECT-- Cannot modify readonly property Dom\HTMLElement::$prefix