|  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Doc Bug #79341 XmlWriter docs does not say $uri is nullable
Submitted: 2020-03-04 10:31 UTC Modified: -
From: jtojnar at gmail dot com Assigned:
Status: Open Package: XML Writer
PHP Version: Irrelevant OS:
Private report: No CVE-ID: None
View Add Comment Developer Edit
Anyone can comment on a bug. Have a simpler test case? Does it work for you on a different platform? Let us know!
Just going to say 'Me too!'? Don't clutter the database with that please — but make sure to vote on the bug!
Your email address:
Solve the problem:
38 - 15 = ?
Subscribe to this entry?

 [2020-03-04 10:31 UTC] jtojnar at gmail dot com
From manual pages:

The URI element should be marked as nullable, see the stub:

Test script:

$writer = new XMLWriter;
$writer->writeAttribute('xmlns:example', '');
$writer->startElementNS('example', 'meta', null);
$writer->writeAttributeNS('example', 'spout', null, 'test');
echo $writer->outputMemory();


Add a Patch

Pull Requests

Pull requests:

Add a Pull Request


AllCommentsChangesGit/SVN commitsRelated reports
 [2020-03-04 12:51 UTC]
The following pull request has been associated:

Patch Name: Fix #79341: XmlWriter docs does not say $uri is nullable
On GitHub:
PHP Copyright © 2001-2020 The PHP Group
All rights reserved.
Last updated: Sat Jul 11 04:01:26 2020 UTC