|  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Request #46146 XMLReader should be able to work on an open stream
Submitted: 2008-09-21 23:09 UTC Modified: 2021-01-13 11:32 UTC
Avg. Score:4.3 ± 0.9
Reproduced:2 of 2 (100.0%)
Same Version:1 (50.0%)
Same OS:1 (50.0%)
From: Keisial at gmail dot com Assigned:
Status: Open Package: XML Reader
PHP Version: 5.2CVS-2008-09-21 (snap) OS: *
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 this is not your bug, you can add a comment by following this link.
If this is your bug, but you forgot your password, you can retrieve your password here.
Bug Type:
From: Keisial at gmail dot com
New email:
PHP Version: OS:


 [2008-09-21 23:09 UTC] Keisial at gmail dot com
XMLReader should be able to work on an open stream.

The extension is already stream-aware so it's only a matter of xmlAllocParserInputBuffer() the xmlParserInputBuffer as in php_libxml_input_buffer_create_filename() (see ext/libxml/libxml.c) and load that with xmlNewTextReader(), providing a nice method for that (open_stream?, attach_to_stream?)


Add a Patch

Pull Requests

Add a Pull Request


AllCommentsChangesGit/SVN commitsRelated reports
 [2008-09-22 22:46 UTC] Keisial at gmail dot com
 [2011-01-23 21:30 UTC]
-Package: Feature/Change Request +Package: XML Reader
 [2015-03-19 01:29 UTC] me at evertpot dot com
Very sorry about the 'me too', but 'me too'. I hope this can get some attention, as it would make XMLReader super useful for massive xml bodies!
 [2021-01-13 11:32 UTC]
Consider to provide a pull request[1].

[1] <>
PHP Copyright © 2001-2023 The PHP Group
All rights reserved.
Last updated: Sat Jun 03 05:03:39 2023 UTC