| 
        php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login | 
 PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits             
             [2007-10-23 21:13 UTC] scottmac@php.net
  | 
    |||||||||||||||||||||||||||
            
                 
                Copyright © 2001-2025 The PHP GroupAll rights reserved.  | 
        Last updated: Tue Nov 04 14:00:01 2025 UTC | 
Description: ------------ When libxml_use_internal_errors() is used, DOMDocument::loadXML() still causes a general PHP warning to be raised when passed an empty string. If this is by design, the documentation should mention this warning will be triggered if an empty string is used. Reproduce code: --------------- $errors = libxml_use_internal_errors(true); $document = new DOMDocument(); var_dump($document->loadXML('')); libxml_clear_errors(); libxml_use_internal_errors($errors); Expected result: ---------------- bool(false) Actual result: -------------- Warning: DOMDocument::loadXML() [function.DOMDocument-loadXML]: Empty string supplied as input bool(false)