|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2005-02-25 21:43 UTC] miroslav dot sulc at startnet dot cz
[2005-02-25 23:24 UTC] rrichards@php.net
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Sat Oct 25 21:00:01 2025 UTC |
Description: ------------ When dumping DOM XML document using $string = $doc->dump_mem(true, 'UTF-8') on document where encoding is already set using, the PHP crashes. Reproduce code: --------------- $doc = domxml_new_doc('1.0'); $attribute = $doc->create_attribute('encoding', 'UTF-8'); $doc->append_child($attribute); // This line makes the PHP crash $string = $doc->dump_mem(true, 'UTF-8'); Expected result: ---------------- It shouldn't crash. It just may issue a warning.