Bug #14328: Interbase and error handling
| From: | sergio at corecanarias dot com | Date: | Mon, 03 Dec 2001 19:58:24 +0000 |
| Subject: | Bug #14328: Interbase and error handling | ||
| Groups: | php.dev | ||
| Request: | Send a blank email to php-dev+get-72368@lists.php.net to get a copy of this message | ||
From: sergio@corecanarias.com
Operating system: Linux Red Hat 7.1
PHP version: 4.0.6
PHP Bug Type: InterBase related
Bug description: Interbase and error handling
This may can't be exactly a bug, maybe you can consider it as a not
implemented feature (I'm not sure about it).
Well, when I'm triying to handle error generated by any Interbase function,
it doesn't work. When I try the same with a MySQL function all goes ok. I'm
interested in show my own error messages but it's imposible to handle any
error generated by Interbase function. I have tried with error_handling(0),
with the @ operator before the function, putting error_handling to 0 and
~E_ALL in PHP.INI but Interbase function always returns it own error
message.
For example I have this code in a object constructor:
$this->IBConnection = @ibase_connect($this->SQLEDatabase, $this->SQLEUser,
$this->SQLEPass, 'NONE', '0', '3');
if (!$this->IBConnection)
trigger_error("No se pudo conectar con la base de datos",
E_USER_ERROR);
Then, it first shows me the default error message and then my own generated
error message...
--
Edit bug report at: http://bugs.php.net/?id=14328&edit=1