#39504 [Opn->Csd]: xmlwriter_write_dtd_entity() creates Attlist tag, not enity
| From: | rrichards@php.net | Date: | Mon, 13 Nov 2006 20:48:48 +0000 |
| Subject: | #39504 [Opn->Csd]: xmlwriter_write_dtd_entity() creates Attlist tag, not enity | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-104928@lists.php.net to get a copy of this message | ||
ID: 39504
Updated by: rrichards@php.net
Reported By: hannes dot magnusson at gmail dot com
-Status: Open
+Status: Closed
Bug Type: *XML functions
Operating System: *
PHP Version: 6CVS-2006-11-13 (CVS)
New Comment:
This bug has been fixed in CVS.
Snapshots of the sources are packaged every three hours; this change
will be in the next snapshot. You can grab the snapshot at
http://snaps.php.net/.
Thank you for the report, and for helping us make PHP better.
Thanks for the patch
Previous Comments:
------------------------------------------------------------------------
[2006-11-13 19:05:47] hannes dot magnusson at gmail dot com
Description:
------------
xmlwriter_write_dtd_entity() creates attlist, not entity.
Proposed patch:
http://home.oslo.nith.no/~maghan/xmlwriter_write_dtd_entity.patch.txt
Reproduce code:
---------------
<?php
$xw = xmlwriter_open_memory();
xmlwriter_start_document($xw, NULL, "UTF-8");
xmlwriter_write_dtd_entity($xw, "ent2", "val2");
xmlwriter_end_document($xw);
print xmlwriter_flush($xw, true);
?>
Expected result:
----------------
<?xml version="1.0" encoding="UTF-8"?>
<!ENTITY ent2 "val2">
Actual result:
--------------
<?xml version="1.0" encoding="UTF-8"?>
<!ATTLIST ent2 val2>
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=39504&edit=1