Subject | ibase_query and exceptions |
---|---|
Author | Yves Glodt |
Post date | 2008-08-12T07:58:23Z |
Hello,
I seem to have problems using exceptions:
try {
$sth = call_user_func_array('ibase_query', array_merge(array($c(), $q), $p));
} catch (Exception $e) {
echo 'Exception: '.$e->getMessage();
exit;
}
This code never reaches the "catch" block, even I use an invalid SQL in $q.
Does anyone have experience in using exceptions with the ibase_* functions?
Best regards,
Yves
I seem to have problems using exceptions:
try {
$sth = call_user_func_array('ibase_query', array_merge(array($c(), $q), $p));
} catch (Exception $e) {
echo 'Exception: '.$e->getMessage();
exit;
}
This code never reaches the "catch" block, even I use an invalid SQL in $q.
Does anyone have experience in using exceptions with the ibase_* functions?
Best regards,
Yves