From:             eric at midkotasolutions dot com
Operating system: RedHat E5
PHP version:      5.2.8
PHP Bug Type:     DOM XML related
Bug description:  Maximum String Length for XML Nodes is not documented

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 bug report at http://bugs.php.net/?id=46987&edit=1
-- 
Try a CVS snapshot (PHP 5.2):        
http://bugs.php.net/fix.php?id=46987&r=trysnapshot52
Try a CVS snapshot (PHP 5.3):        
http://bugs.php.net/fix.php?id=46987&r=trysnapshot53
Try a CVS snapshot (PHP 6.0):        
http://bugs.php.net/fix.php?id=46987&r=trysnapshot60
Fixed in CVS:                        
http://bugs.php.net/fix.php?id=46987&r=fixedcvs
Fixed in CVS and need be documented: 
http://bugs.php.net/fix.php?id=46987&r=needdocs
Fixed in release:                    
http://bugs.php.net/fix.php?id=46987&r=alreadyfixed
Need backtrace:                      
http://bugs.php.net/fix.php?id=46987&r=needtrace
Need Reproduce Script:               
http://bugs.php.net/fix.php?id=46987&r=needscript
Try newer version:                   
http://bugs.php.net/fix.php?id=46987&r=oldversion
Not developer issue:                 
http://bugs.php.net/fix.php?id=46987&r=support
Expected behavior:                   
http://bugs.php.net/fix.php?id=46987&r=notwrong
Not enough info:                     
http://bugs.php.net/fix.php?id=46987&r=notenoughinfo
Submitted twice:                     
http://bugs.php.net/fix.php?id=46987&r=submittedtwice
register_globals:                    
http://bugs.php.net/fix.php?id=46987&r=globals
PHP 4 support discontinued:          http://bugs.php.net/fix.php?id=46987&r=php4
Daylight Savings:                    http://bugs.php.net/fix.php?id=46987&r=dst
IIS Stability:                       
http://bugs.php.net/fix.php?id=46987&r=isapi
Install GNU Sed:                     
http://bugs.php.net/fix.php?id=46987&r=gnused
Floating point limitations:          
http://bugs.php.net/fix.php?id=46987&r=float
No Zend Extensions:                  
http://bugs.php.net/fix.php?id=46987&r=nozend
MySQL Configuration Error:           
http://bugs.php.net/fix.php?id=46987&r=mysqlcfg

Reply via email to