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
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes.
If you forgot your password, you can retrieve your password here.
Password:
Status:
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

Pull Requests

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-2025 The PHP Group
All rights reserved.
Last updated: Wed Jan 15 15:01:31 2025 UTC