#46987 [Asn->Fbk]: Maximum String Length for XML Nodes is not documented
| From: | rrichards@php.net | Date: | Tue, 06 Jan 2009 10:50:45 +0000 |
| Subject: | #46987 [Asn->Fbk]: Maximum String Length for XML Nodes is not documented | ||
| References: | 1 | Groups: | php.doc.bugs |
| Request: | Send a blank email to doc-bugs+get-1697@lists.php.net to get a copy of this message | ||
ID: 46987
Updated by: rrichards@php.net
Reported By: eric at midkotasolutions dot com
-Status: Assigned
+Status: Feedback
Bug Type: Documentation problem
Operating System: RedHat E5
PHP Version: 5.2.8
Assigned To: rrichards
New Comment:
Thank you for this bug report. To properly diagnose the problem, we
need a short but complete example script to be able to reproduce
this bug ourselves.
A proper reproducing script starts with <?php and ends with ?>,
is max. 10-20 lines long and does not require any external
resources such as databases, etc. If the script requires a
database to demonstrate the issue, please make sure it creates
all necessary tables, stored procedures etc.
Please avoid embedding huge scripts into the report.
I cannot reproduce this.
Using a script similar to what you posted, I hit no
limitation on string length. Was easily able to write/read using a
string 300K long. Are you able to duplicate this on other platforms as
well?
Previous Comments:
------------------------------------------------------------------------
[2009-01-02 02:30:06] johannes@php.net
Rob, can you clarify whether that's an PHP or libxml2 limitation?
Thanks.
------------------------------------------------------------------------
[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