php.net |  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
View Add Comment Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
You can add a comment by following this link or if you reported this bug, you can edit this bug over here.
Block user comment
Status: Assign to:
Package:
Bug Type:
Summary:
From: danhen at web dot de
New email:
PHP Version: OS:

 

 [2004-10-08 02:24 UTC] danhen at web dot de
Description:
------------
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

xmlwriter_end_document($xmldoc);

Expected result:
----------------
A XML-document

Actual result:
--------------
Apache chrashes.

Patches

Add a Patch

Pull Requests

Add a Pull Request

History

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


 [2004-10-08 11:06 UTC] rrichards@php.net
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: Fri Jul 10 22:01:25 2020 UTC