e quick info.
Chuck
-Original Message-
From: Eric L. Brine [EMAIL PROTECTED]
To: Chuck Goehring [EMAIL PROTECTED]
Cc: mod perl list [EMAIL PROTECTED]; [EMAIL PROTECTED] [EMAIL PROTECTED]
Date: Friday, September 08, 2000 9:58 PM
Subject: Re: Eval block error trapping bug
Under mod_pe
On Sat, 9 Sep 2000, Eric L. Brine wrote:
Under mod_perl, the die() within the eval block causes the
program to really die.
Does your program (maybe CGI.pm or something used by CGI.pm?) set
$SIG{'DIE'}? IIRC, $SIG{'DIE'} has precedence over eval{}, something
many consider to be a bug.
Hi,
Having a big problem here.
When I use an eval{} block to trap dbi errors, it doesn't seam to work as
documented under mod_perl.
When I found this problem, I created a test program that connects, prepares
and executes a bogus sql
statement. The $lsth-execute() || die $DBI::errstr; is
Under mod_perl, the die() within the eval block causes the
program to really die.
Does your program (maybe CGI.pm or something used by CGI.pm?) set
$SIG{'DIE'}? IIRC, $SIG{'DIE'} has precedence over eval{}, something
many consider to be a bug.
If so, I'd try:
eval {
local $SIG{'DIE'}; #