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: 2024-06-29 16:08 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: nielsdos (profile)
Status: Closed 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 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

Pull Requests

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>
 [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
The fix for this bug has been committed.
If you are still experiencing this bug, try to check out latest source from https://github.com/php/php-src and re-test.
Thank you for the report, and for helping us make PHP better.

This is implemented in PHP-8.4-dev.
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Sat Dec 21 16:01:28 2024 UTC