|  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #48701 Size limit on XML nodes
Submitted: 2009-06-26 12:40 UTC Modified: 2009-09-09 01:00 UTC
From: luca at iv-srl dot it Assigned:
Status: No Feedback Package: DOM XML related
PHP Version: 5.2.10 OS: Windows XP
Private report: No CVE-ID: None
Have you experienced this issue?
Rate the importance of this bug to you:

 [2009-06-26 12:40 UTC] luca at iv-srl dot it
I submit an attachment and then send via XML inside a node. When I 
attach a file larger than 12k this function creates an empty node with 
no evident error report on php.
(This is only a sample of the real code)

Reproduce code:
function creaElem($name, $value="", $parent=null) 
  if ($value!="")
    if ($parent!=null)
    return $el;
function AttachFile($parentnode,$attachmentname)
$whatsinside=file_get_contents ($_FILES['attachment']['tmp_name']);		
$cdata=$this->Document->createCDATASection(base64_encode($whatsinside));		$newnode->appendChild($cdata);

Expected result:
When I run AttachFile(..) and My attachment size is larger than 12k this 
function creates an empty node. With attachments<12k it works.
Any suggestion?
Thanks in advance


Add a Patch

Pull Requests

Add a Pull Request


AllCommentsChangesGit/SVN commitsRelated reports
 [2009-09-01 16:37 UTC]
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.

 [2009-09-09 01:00 UTC] php-bugs at lists dot php dot net
No feedback was provided for this bug for over a week, so it is
being suspended automatically. If you are able to provide the
information that was originally requested, please do so and change
the status of the bug back to "Open".
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Sun Apr 21 18:01:29 2024 UTC