|
|
sybperl-l Archive
Up Prev Next
From: Michael Peppler <mpeppler at MBAY dot NET>
Subject: Re: CGI problems - Browser stall
Date: Sep 10 1997 5:49PM
Heinz Ringlhofer wrote:
>
> I have hit the following problem when encountering errors on openeing a
> connection to Sybase:
>
> I am trying to open a connection to a non-existing server (for exception
> testing purposes):
> ct_connect failed at blitz1.pl line 543, <> chunk 2.
This is a bug in CTlib.xs. There are a couple of warn() calls
in the ct_connect() function which should probably not be
there.
You can ignore them by doing something like this:
local $SIG{__WARN__} = sub { ; }; #ignore warnings...
$x = new Sybase::CTlib 'user', 'password', "DUMMY", "cgi_test";
if(!defined($x)) {
return; # NOTE: this will produce a correct HTML
trailer
}
I will probably correct this for the next release...
Michael
--
Michael Peppler -||- Data Migrations Inc.
mpeppler@datamig.com -||- http://www.mbay.net/~mpeppler
|