Skip Menu |

Preferred bug tracker

Please visit the preferred bug tracker to report your issue.

This queue is for tickets about the CGI CPAN distribution.

Report information
The Basics
Id: 62783
Status: resolved
Priority: 0/
Queue: CGI

Owner: MARKSTOS [...]
Requestors: papowell [...]

Bug Information
Severity: Normal
Broken in: (no value)
Fixed in: (no value)

Subject: fatalsToBrowser, mod_perl2, eval interactions
Download (untitled) / with headers
text/plain 1.2k
CGI::Carp, mod_perl2 and fatalsToBrowser, eval interactions, Note: I would like to thank and compliment the developers and supporters of CGI for an amazingly well done piece of work. A problem sometimes encountered when using fatalsToBrowser is when a C<die()> is done inside an C<eval> body or expression. Even though the fatalsToBrower support takes precautions to avoid this, you still may get the error message printed to STDOUT. This may have some undesireable effects when the purpose of doing the eval is to determine which of several algorithms is to be used. By setting C<$CGI::Carp::ToBrowser> to 0 you can suppress printing the C<die> messages but without all of the complexity of using C<set_die_handler>. You can localize this effect to inside C<eval> bodies if this is desireable: For example: eval { local $CGI::Carp::ToBrowser = 0; die "Fatal error messages not sent browser" } # $@ will contain error message A patch is attached which will implement this functionality and test it. CGI::Carp and mod_perl2 There is a statement in the POD that fatalsToBrowser does not work with mod_perl2. This apparently is not the case - it seems to work fine for me (and some other testers). I suggest changing the word or phrase 'does not' to 'may not'.
Subject: CGI::Carp-diffs
Download CGI::Carp-diffs
application/octet-stream 3.5k

Message body not shown because it is not plain text.

Thanks. I've added your patch to our git repo now.
Subject: patch released for
Thanks for the bug report. A patch for it appeared in 3.51, if not sooner. Resolving. Mark

This service is sponsored and maintained by Best Practical Solutions and runs on infrastructure.

Please report any issues with to