|   | php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login | 
| 
 PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits              [2012-11-23 19:35 UTC] franck at cassedanne dot com
 
-PHP Version: 5.3.19
+PHP Version: 5.3.19, 5.4.9
  [2012-11-23 19:35 UTC] franck at cassedanne dot com
  [2013-10-02 07:36 UTC] mike@php.net
 
-Status: Open
+Status: Not a bug
  [2013-10-02 07:36 UTC] mike@php.net
  [2013-10-15 09:32 UTC] franck at cassedanne dot com
 
-Type: Bug
+Type: Feature/Change Request
  [2013-10-15 09:32 UTC] franck at cassedanne dot com
  [2013-10-15 10:20 UTC] mike@php.net
  [2013-10-15 10:25 UTC] pajoye@php.net
  [2013-10-15 10:49 UTC] franck at cassedanne dot com
  [2013-10-15 11:12 UTC] pajoye@php.net
 
-Assigned To:
+Assigned To: rrichards
  [2013-10-15 11:12 UTC] pajoye@php.net
 | |||||||||||||||||||||||||||||||||||||
|  Copyright © 2001-2025 The PHP Group All rights reserved. | Last updated: Fri Oct 31 19:00:02 2025 UTC | 
Description: ------------ XMLWriter differs in its handling of double-quotes when compared to other libxml based PHP extensions. Double-quotes using XMLWriter are converted to htmlentities (i.e. '"'). Using SimpleXML or DOMDocument double-quotes stay unconverted. It seems to me that XMLWriter should not be converting double-quotes either. Tidy seems to also agree -- try the following in a CLI: $ echo "<?xml encoding=\"UTF-8\"?><tag>"</tag>" | tidy -xml -q Maybe introducing a flag/constant such as ENT_NOQUOTES to toggle the conversion of these on and off might be pertinent. Test script: --------------- <?php $x = new XMLWriter; $x->openMemory(); $x->startDocument('1.0', 'UTF-8'); $x->writeElement('tag', '"'); $x->endDocument(); echo $x->flush(); Expected result: ---------------- <?xml version=\"1.0\" encoding=\"UTF-8\"?><tag>"</tag> Actual result: -------------- <?xml version=\"1.0\" encoding=\"UTF-8\"?><tag>"</tag>