Skip Menu |

This queue is for tickets about the XML-SAX-ExpatXS CPAN distribution.

Report information
The Basics
Id: 11572
Status: resolved
Priority: 0/
Queue: XML-SAX-ExpatXS

People
Owner: PCIMPRICH [...] cpan.org
Requestors: rob.kinyon [...] gmail.com
Cc:
AdminCc:

Bug Information
Severity: Normal
Broken in: 1.04
Fixed in: 1.10



Subject: support_features not loaded in ParserDetails.ini not set
I'm testing XML::SAX::ExpatXS, so I haven't loaded it into the main install area. I have a personal ~/lib directory I work in. I have a SAX.ini where I specified: ParserPackage = XML::SAX::ExpatXS (0.01) When I try to use XML::SAX::ParserFactory->parser(), the @supported_features aren't set before new() is called. Wrapping the setting of @supported_features in a BEGIN{} block fixes the problem. Also - is there a reason why you explicitly set each of the features using an index into @supported_features vs. using a loop over @supported_features? Thanks, Rob
Can you post a sample of code which fails? Then, what exactly do you wrap into BEGIN{} to fix the problem. Thanks. The features are set one by one as there could be other default values than 1. A loop would be shorter but it would be less legible to set different values.