For Programmers: Free Programming Magazines  


Home > Archive > PHP PEAR Questions and Answers > April 2004 > Re: [PEAR-DEV] Re: XML_Parser released









You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

 

Author Re: [PEAR-DEV] Re: XML_Parser released
Stephan Schmidt

2004-04-17, 5:30 pm

Hi,

> Actally I've got a script that worked fine with
> XML_Parser-1.0.1 but segfaults with the new one.
> I did not yet track down the issue, but relevant
> files are attached.


There seems to be a recursion. Could you please change line 181 of
XML_Parser to:

XML_Parser::__construct($srcenc, $mode, $tgtenc);

You are overwriting __construct() in your class and I was calling this
by using $this->__construct(), which I shouldn't :-(

Thanks,

Stephan
Michael Wallner

2004-04-17, 6:30 pm

Stephan Schmidt wrote:

> There seems to be a recursion. Could you please change line 181 of
> XML_Parser to:
>
> XML_Parser::__construct($srcenc, $mode, $tgtenc);
>
> You are overwriting __construct() in your class and I was calling this
> by using $this->__construct(), which I shouldn't :-(


Dumb me should have taken a look if __construct() has been implemented
in the new version of XML_Parser... Sorry for the noise :-/

Thanks,
Michael
Sponsored Links







Also available: Server administration forum archive | Web Design forum archive | Software forum archive | Hardware reviews archive

Copyright 2008 codecomments.com