|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2024-06-29 16:08 UTC] nielsdos@php.net
[2024-06-29 16:08 UTC] nielsdos@php.net
-Status: Open
+Status: Closed
-Assigned To:
+Assigned To: nielsdos
[2024-06-29 16:08 UTC] nielsdos@php.net
|
|||||||||||||||||||||||||||||||||||||
Copyright © 2001-2026 The PHP GroupAll rights reserved. |
Last updated: Mon Jan 05 12:00:01 2026 UTC |
Description: ------------ It would be extremely handy if, instead of supplying XMLWriter with a uri, we can give it a writeable stream instead, as such; $h = fopen('php://output','w'); $xw = new \XMLWriter(); $xw->openStream($h); This way the XMLWriter does not have to be aware of an output uri. In my applications (webservices) I simply work with out an output, and an input stream. Different components write to the outputstream, and what they are writing comes from different sources. Unittests often simply replace the outputstream with php://memory, or php://temp, so the application output can get easily redirected. Using openUri() I have to break this, which would kind of suck.