Subject | Re: [firebird-php] How to capture exceptions? |
---|---|
Author | Thomas Beckmann |
Post date | 2005-05-23T11:17:23Z |
> why an exception? ... btw are we talking php exception or firebirdAbout a firebird exception. Our application handles a lot of things right
> exception?
in the database, some of the calculating procedures reject some sets or
combinations of parameters by raising an exception. This is handled by the
Delphi front end nicely, but our new php-approach fails on that.
> you may be using an older version of the extension... whatYes, it's php 4.3.0.
> version of php are you running this on (php4 perhaps)?
> ibase_query returns boolean false if I try this, which is what I wouldIt does not in php 4.3...
> expect
> no need for the extension to trigger a php-level error...Well, thus... is there any way to figure out what's wrong - I mean: there
> although ibase_errmsg() and ibase_errcode() both return boolean false also
*is* a well defined error in Firebird on that statement...
> why do you need to perform this particular query?... a little more insightOf course, I do not want to divide by zero - but it is the most simple
> into what you are trying to do would help us to help you :-)
statement to raise a Firebird exception :-)
Any further ideas?
--
Thomas.Beckmann@...
Martens & Prahl EDV, Wielandstr. 14c, 23558 Lübeck
Telefon 0451-39904-525 • Telefax -520/-559