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: 2021-01-13 11:32 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
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.
Password:
Status:
Package:
Bug Type:
Summary:
From: Keisial at gmail dot com
New email:
PHP Version: OS:

 

 [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!
 [2021-01-13 11:32 UTC] cmb@php.net
Consider to provide a pull request[1].

[1] <https://github.com/php/php-src/pulls>
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Thu Mar 28 12:01:27 2024 UTC