Subject: | use diagnostics collides with CGI::Carp qw(fatalsToBroswer) and similar |
Hi,
CGI::Session uses diagnostics. As diagnostics installs itself ahead of
existing die handlers. It overrides behaviour like the one intended by CGI::Carp qw(fatalsToBrowser). The diagnostic messages is printed before
the previously installed die handler has a chance to output the Content-Type
header resulting in a Interner Server Error message on part of Apache.
In my opinion, a module should not cause such side effects, it's up to
the using script writer to decide how much warning and diagnostics are appropriate. At least a warning should appear in the modules documentation,
saying that die handlers should be installed after use CGI::Session if the
diagnostic messages are unwanted.
claudio