|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2007-10-25 09:00 UTC] rquadling@php.net
[2007-10-25 09:02 UTC] rquadling@php.net
|
|||||||||||||||||||||||||||
Copyright © 2001-2026 The PHP GroupAll rights reserved. |
Last updated: Thu Oct 08 06:00:01 2026 UTC |
Description: ------------ DOMDocument::loadXML and DOMDocument::load raise undocumented PHP warnings when passed an empty string as the argument. Reproduce code: --------------- $document = new DOMDocument(); $document->loadXML(''); Expected result: ---------------- Since this is by design (see Bug #43809), the documentation should be updated to say what happens when you pass an empty string. Something like: "If an empty string is passed as the $source, a PHP warning will be generated. This warning is not generated by libxml and cannot be handled using libxml's error handling functions."