libwww-perl / URI

The Perl URI module
https://metacpan.org/pod/URI
Other
41 stars 48 forks source link

URI::_generic requires Regexp::IPv6 leads to die (not installed and not trapped) #122

Closed jackdeguest closed 1 year ago

jackdeguest commented 1 year ago

On line 25 of URI::_generic there is a call to require module Regexp::IPv6, which is not a core module and is not installed by default, thus leading the module to die unexpectedly.

At least, this require should be eval'ed to trap ensuing fatal error.

haarg commented 1 year ago

It is already trapped by an eval.

jackdeguest commented 1 year ago

It is already trapped by an eval.

Yes, my apologies. I must have been using an earlier version.

haarg commented 1 year ago

The use of Regexp::IPv6 in this module has always been protected by an eval. You may have problems elsewhere in your code, possibly related to a __DIE__ hook.