php.net |  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: 2011-01-23 21:30 UTC
Votes:3
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
Have you experienced this issue?
Rate the importance of this bug to you:

 [2008-09-21 23:09 UTC] Keisial at gmail dot com
Description:
------------
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?)


Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2008-09-22 22:46 UTC] Keisial at gmail dot com
Implementation: http://pastebin.com/f50204f1f
 [2011-01-23 21:30 UTC] jani@php.net
-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!
 
PHP Copyright © 2001-2019 The PHP Group
All rights reserved.
Last updated: Wed Jun 26 03:01:26 2019 UTC