Sorry for the OT message, but I couldn't figure where else I'd find a large
group of people who use XML::LibXML (and I didn't want to email Matt
directly).

I have a series of Apache handlers (Perl{Trans,Access,Authen}Handler) that
all use XML::LibXML to load external configuration files to determine things
like authentication, authorization, etc.  I've run into a strange problem
that I haven't found documented anywhere.

My code runs fine the first request.  However, On the second request I get
the following message in my error_log:

    [error] Can't call method "_fix_extra" on an undefined value at
/usr/lib/perl5/site_perl/5.6.0/i386-linux/XML/LibXML.pm line 202.

I have libxml2 2.4.13 and XML::LibXML 1.31.  These handlers are defined at
the <VirtualHost/> level, while I have AxKit defined at a <Files/> level
under that.  The only handler I'm getting this error in is the
PerlTransHandler, but as its the first handler called, none of the other
handlers are called.  Any6way, the TransHandler I've defined creates one
XML::LibXML parser, and loads two XML documents (e.g. I load one XML file,
undef it's document handle, then load a second under a different variable,
then undef it as well).  It sounds like a garbage collection problem to me,
but I can't seem to track it down.  I only have a basic understanding of XS,
and the rest is voodoo to me.

Any help would be appreciated.

Michael A Nachbaur
-man


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to