| 
        php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login | 
 PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits             
             [2012-09-11 12:12 UTC] reeze dot xia at gmail dot com
  [2020-02-13 17:07 UTC] cmb@php.net
 
-Status: Open
+Status: Verified
-Type:   Bug
+Type:   Documentation Problem
  [2020-02-13 17:07 UTC] cmb@php.net
  [2020-03-14 16:56 UTC] cmb@php.net
  [2020-03-14 16:56 UTC] cmb@php.net
 
-Status:      Verified
+Status:      Closed
-Assigned To:
+Assigned To: cmb
  [2020-03-14 16:56 UTC] cmb@php.net
  [2020-03-14 16:58 UTC] phpdocbot@php.net
  [2020-03-14 23:00 UTC] mumumu@php.net
  [2020-03-14 23:05 UTC] phpdocbot@php.net
  [2020-12-30 11:59 UTC] nikic@php.net
  | 
    |||||||||||||||||||||||||||||||||||||
            
                 
                Copyright © 2001-2025 The PHP GroupAll rights reserved.  | 
        Last updated: Tue Nov 04 03:00:01 2025 UTC | 
Description: ------------ Option LIBXML_NOEMPTYTAG is ignored for SimpleXMLElement::__construct() and simplexml_load_string() Probably, for simplexml_load_file() also. Test script: --------------- <?php $xml = new SimpleXMLElement('<?xml version="1.0" encoding="utf-8"?><request><packet></packet></request>', LIBXML_NOEMPTYTAG); $xml->saveXML(); Expected result: ---------------- <?xml version="1.0" encoding="utf-8"?> <request><packet></packet></request> Actual result: -------------- <?xml version="1.0" encoding="utf-8"?> <request><packet/></request>