#46987 [Opn->Asn]: Maximum String Length for XML Nodes is not documented

From: Date: Fri, 02 Jan 2009 02:30:07 +0000
Subject: #46987 [Opn->Asn]: Maximum String Length for XML Nodes is not documented
References: 1  Groups: php.doc.bugs 
Request: Send a blank email to doc-bugs+get-1689@lists.php.net to get a copy of this message
ID: 46987 Updated by: johannes@php.net Reported By: eric at midkotasolutions dot com -Status: Open +Status: Assigned Bug Type: Documentation problem Operating System: RedHat E5 PHP Version: 5.2.8 -Assigned To: +Assigned To: rrichards New Comment: Rob, can you clarify whether that's an PHP or libxml2 limitation? Thanks. Previous Comments: ------------------------------------------------------------------------ [2009-01-01 17:42:22] eric at midkotasolutions dot com Description: ------------ 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. Reproduce code: --------------- 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 Expected result: ---------------- Is there a reason for the limitation? - Or, is this a bug? ------------------------------------------------------------------------ -- Edit this bug report at http://bugs.php.net/?id=46987&edit=1

« previous php.doc.bugs (#1689) next »