|  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #56211 xmlwriter_start_document chrashes apache
Submitted: 2004-10-08 02:24 UTC Modified: 2004-10-08 11:06 UTC
From: danhen at web dot de Assigned: rrichards (profile)
Status: Closed Package: xmlwriter (PECL)
PHP Version: Irrelevant OS: W2k
Private report: No CVE-ID: None
 [2004-10-08 02:24 UTC] danhen at web dot de
When using xmlwriter_start_document, apache chrashes. The Function needs 4 parameters per definition in libxml.

zend_parse_parameters() returns "the function expect exactly 2 parameters", when typing two parameters the chrash happens, when there are less or more parameters I get the message.

I am not experienced enough in writing php-extension, so I am not able to change it.

PHP-version is 5.0.2 as apachemodule, apache-version is 1.3.29 and libxml-version is 2.6.14.

Reproduce code:
$xmldoc = xmlwriter_open_uri("something.xml");

xmlwriter_start_document($xmldoc, "1.0", "ISO-8859-1", "standalone"); 
//This parameter-definition I took from the 
//libxml-documentation and later from the proto-definition 
//of xmlwriter

//More xmlwriter--code


Expected result:
A XML-document

Actual result:
Apache chrashes.


Add a Patch

Pull Requests

Add a Pull Request


AllCommentsChangesGit/SVN commitsRelated reports
 [2004-10-08 10:56 UTC]
Thank you for your bug report. This issue has already been fixed
in the latest released version of PHP, which you can download at

 [2004-10-08 11:06 UTC]
quick fix dont work so well it seems. Bug fixed in CVS and in 0.2 alpha release
PHP Copyright © 2001-2020 The PHP Group
All rights reserved.
Last updated: Tue Oct 20 00:01:24 2020 UTC