note 87948 added to class.domtext
| From: | eric at midkotasolutions dot com | Date: | Thu, 01 Jan 2009 17:52:19 +0000 |
| Subject: | note 87948 added to class.domtext | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-148744@lists.php.net to get a copy of this message | ||
Note that there is a limitation to the maximum size of a string for a node. I am submitting here in
as documentation.
I have a string that is 455K in Size. I tried creating an XML Node with this string as it's
value, but the string always gets cut off at about 83K -
I attempted using both the nodeValue property, and by creating a new DOMTextNode.
To replicate, create a string that is greater than 83K (or so) -
<?php
$string="text that is really big"
$node=new DOMText($string);
echo $node->wholeText;
?>
The echo'd value will be cut off at about 83K
----
Server IP: 209.41.74.194
Probable Submitter: 96.3.133.215
----
Manual Page -- http://www.php.net/manual/en/class.domtext.php
Edit -- https://master.php.net/note/edit/87948
Del: integrated -- https://master.php.net/note/delete/87948/integrated
Del: useless -- https://master.php.net/note/delete/87948/useless
Del: bad code -- https://master.php.net/note/delete/87948/bad+code
Del: spam -- https://master.php.net/note/delete/87948/spam
Del: non-english -- https://master.php.net/note/delete/87948/non-english
Del: in docs -- https://master.php.net/note/delete/87948/in+docs
Del: other reasons-- https://master.php.net/note/delete/87948
Reject -- https://master.php.net/note/reject/87948
Search -- https://master.php.net/manage/user-notes.php