Re: Bundling libxml2 default?
| From: | Adam Dickmeiss | Date: | Fri, 16 May 2003 23:18:52 +0000 |
| Subject: | Re: Bundling libxml2 default? | ||
| References: | 1 2 | Groups: | php.internals |
| Request: | Send a blank email to internals+get-1624@lists.php.net to get a copy of this message | ||
On Sat, May 17, 2003 at 08:03:06AM +0900, Moriyoshi Koizumi wrote:
> Adam Dickmeiss <adam@indexdata.dk> wrote:
>
> > On Sat, May 17, 2003 at 06:11:02AM +0900, Moriyoshi Koizumi wrote:
> > > Could you try the attached patch and see if it works?
> > I did a similar thing, but it didn't made a difference. To
> > be 100% sure I applied your patch and tried again. No luck:(
> >
> > The info for xmlCreatePushParserCtxt indicates that 4 leading
> > bytes are needed to detect decoding.
> >
> > http://xmlsoft.org/html/libxml-parser.html#xmlCreatePushParserCtxt
>
> Thanks for testing. After some investigation, I found the patch was
> actually bogus. Sorry! As far as I looked into the sources, it seems the
> libxml implementation does the encoding detection again after the parser
> creation if ctxt->charset = XML_CHAR_ENCODING_NONE.
>
> The right one is attached, and the test script follows as well:
Works, getting a much better sleep now. Thanks.
-- Adam
Adam Dickmeiss mailto:adam@indexdata.dk http://www.indexdata.dk
Index Data T: +45 33410100 Mob.: 212 212 66