Re: DOMDocument Size limit

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Jochem Maas wrote:
what version of php? what version of libxml?
php: 5.2.0
libxml: 2.6.26
is the limit actually 4096 bytes per chance? (that seems more likely)

the limit is probably 4096 but I think it may be due to the length of tags and other things not just the value.
what happens when you create the element with an empty value then use
something like this?:

$el = $foo->createElement($name, '');
$el->nodeValue = $yourBigString;

Same thing happened there
also are you able to use $foo->createElementNS() ? does that suffer from the same limit?


I'm not familiar enough with the how this dom works to make that modification. I didn't write this code I'm just trying to fix it.


could it be a problem with the actual contents of your $value variable?
what does it contain? (especially around the 4K bytes mark)

the variable contains htmlspecialchars encoded html. The next character after it stops is either a space or a period.
I tried in vain to find something in the php source that might
point to your problem.. that's not to say there is nothing there, it's just my
skills/understanding aren't up to the job.

I looked for something in the php.ini file but the only thing I found was output_buffering = 4096 and that doesn't seem like it would be a problem.

--
Chris W
KE5GIX

"Protect your digital freedom and privacy, eliminate DRM, learn more at http://www.defectivebydesign.org/what_is_drm";

Gift Giving Made Easy
Get the gifts you want & give the gifts they want One stop wish list for any gift, from anywhere, for any occasion!
http://thewishzone.com

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux