Req #46146 [Com]: XMLReader should be able to work on an open stream
Edit report at https://bugs.php.net/bug.php?id=46146&edit=1
ID: 46146
Comment by: me at evertpot dot com
Reported by: Keisial at gmail dot com
Summary: XMLReader should be able to work on an open stream
Status: Open
Type: Feature/Change Request
Package: XML Reader
Operating System: *
PHP Version: 5.2CVS-2008-09-21 (snap)
Block user comment: N
Private report: N
New Comment:
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!
Previous Comments:
------------------------------------------------------------------------
[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
Thread (5 messages)