PHP Bug 48109 - Test Revision 306537666166 (Wed Apr 29 2009 at 14:07) - Diff Link to this snippet: https://friendpaste.com/2jrhQQ0OzJosv243FDwyGe Embed: manni perldoc borland colorful default murphy trac fruity autumn bw emacs pastie friendly Show line numbers Wrap lines 12345678910111213141516171819--TEST--test if the ' and " entities are not converted--SKIPIF--if (!extension_loaded('dom')) { die('skip DOM extension not loaded.');}--FILE--// create document (keep it simple)$domImp = new DomImplementation();$dom = $domImp->createDocument(null, 'root');// create element with the entities$foo = $dom->createElement('foo', '' "'); // bug here$dom->documentElement->appendChild($foo);echo $dom->saveXML();--EXPECT--<?xml version="1.0"?><root><foo>' "</foo></root>