Req #46146 [Opn->Csd]: XMLReader should be able to work on an open stream
| From: | nielsdos@php.net | Date: | Sat, 29 Jun 2024 16:08:10 +0000 |
| Subject: | Req #46146 [Opn->Csd]: XMLReader should be able to work on an open stream | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-247181@lists.php.net to get a copy of this message | ||
Edit report at https://bugs.php.net/bug.php?id=46146&edit=1
ID: 46146
Updated by: nielsdos@php.net
Reported by: Keisial at gmail dot com
Summary: XMLReader should be able to work on an open stream
-Status: Open
+Status: Closed
Type: Feature/Change Request
Package: XML Reader
Operating System: *
PHP Version: 5.2CVS-2008-09-21 (snap)
-Assigned To:
+Assigned To: nielsdos
Block user comment: N
Private report: N
New Comment:
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.
Previous Comments:
------------------------------------------------------------------------
[2021-01-13 11:32:33] cmb@php.net
Consider to provide a pull request[1].
[1] <https://github.com/php/php-src/pulls>
------------------------------------------------------------------------
[2015-03-19 01:29:45] 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!
------------------------------------------------------------------------
[2008-09-22 22:46:03] Keisial at gmail dot com
Implementation: http://pastebin.com/f50204f1f
------------------------------------------------------------------------
[2008-09-21 23:09:12] 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?)
------------------------------------------------------------------------
--
Edit this bug report at https://bugs.php.net/bug.php?id=46146&edit=1