Skip Menu |

This queue is for tickets about the CGI-Alert CPAN distribution.

Report information
The Basics
Id: 8033
Status: resolved
Worked: 5 min
Priority: 0/
Queue: CGI-Alert

People
Owner: cpanrt [...] edsantiago.com
Requestors: DON [...] cpan.org
don [...] donarmstrong.com
Cc:
AdminCc:

Bug Information
Severity: Important
Broken in: 1.05
Fixed in: (no value)



Subject: die handler needs to check $^S properly
$^S can be 1 or undef if we are either in an eval or parsing an eval, respectively. IE die $msg if $^S; should be: die $msg if $^S or not defined $^S; [perldoc perlvar: $EXCEPTIONS_BEING_CAUGHT $^S Current state of the interpreter. $^S State --------- ------------------- undef Parsing module/eval true (1) Executing an eval false (0) Otherwise The first state may happen in $SIG{__DIE__} and $SIG{__WARN__} handlers. ] You can trivially test this with perl -MCGI::Alert -e 'eval qq(BEGIN{die});'
Nice work. Thanks for detecting that, and especially for providing a patch with full references to the documentation. Fixed in 1.08, just uploaded to CPAN. Thank you for your patience.