note 88019 added to function.domdocument-create-cdata-section
| From: | barthelemy dot seb at gmail dot com | Date: | Tue, 06 Jan 2009 12:55:48 +0000 |
| Subject: | note 88019 added to function.domdocument-create-cdata-section | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-148884@lists.php.net to get a copy of this message | ||
Since php 5.2.7 release, this function work properly with empty content :
Function call : dom_document->createCDATASection("");
- php < 5.2.7 will return an empty node like : <MyNode></MyNode>
- php >= 5.2.7 will return an empty node with CDATA like :
<MyNode><![CDATA[]]></MyNode>
it can make problem if you make a xsd validation after it with node cannot be empty
----
Server IP: 89.31.146.176
Probable Submitter: 217.128.101.129
----
Manual Page -- http://www.php.net/manual/en/function.domdocument-create-cdata-section.php
Edit -- https://master.php.net/note/edit/88019
Del: integrated -- https://master.php.net/note/delete/88019/integrated
Del: useless -- https://master.php.net/note/delete/88019/useless
Del: bad code -- https://master.php.net/note/delete/88019/bad+code
Del: spam -- https://master.php.net/note/delete/88019/spam
Del: non-english -- https://master.php.net/note/delete/88019/non-english
Del: in docs -- https://master.php.net/note/delete/88019/in+docs
Del: other reasons-- https://master.php.net/note/delete/88019
Reject -- https://master.php.net/note/reject/88019
Search -- https://master.php.net/manage/user-notes.php