Re: Eval block error trapping bug????

2000-09-10 Thread Chuck Goehring
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 t

Re: Eval block error trapping bug????

2000-09-09 Thread Matt Sergeant
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

Re: Eval block error trapping bug????

2000-09-09 Thread Matt Sergeant
On Fri, 8 Sep 2000, Chuck Goehring wrote: > 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 > st

Re: Eval block error trapping bug????

2000-09-08 Thread Eric L. Brine
> 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'};

Eval block error trapping bug????

2000-09-08 Thread Chuck Goehring
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 trigge