Re: Re: [PHP5-DEV] Replacing expat with libxml
| From: | Wez Furlong | Date: | Mon, 28 Apr 2003 12:20:54 +0000 |
| Subject: | Re: Re: [PHP5-DEV] Replacing expat with libxml | ||
| References: | 1 2 | Groups: | php.internals php.xml.dev |
| Request: | Send a blank email to internals+get-1063@lists.php.net to get a copy of this message | ||
On Mon, 28 Apr 2003, Shane Caraveo wrote:
> > - FTP and HTTP transports (as well as an IO wrapper library like
> > Streams)
>
> Can the wrapper be made to work with the php streams? It would be nice
> for instance, to simply be able to pass php://stdin to the library and
> have it handle input. A call back to handle protocol headers, or
> alternate encodings such as dime would be necessary. Anyway, those are
> some things I'd like to discuss.
See my code in pear/PECL/soap/php_xml.c that already ties the libxml io
layer into php streams.
(php_stream_xmlIO_XXX and the xmlRegisterInputCallbacks() call in
soap.c)
This allows opening of any URL supported by streams; I don't think that
the library allows you pass a handle that has already been opened, but I
could be wrong.
--Wez.