From:             almad at dracidoupe dot cz
Operating system: Gentoo Linux
PHP version:      5.0.1
PHP Bug Type:     InterBase related
Bug description:  Exception handling not work for selectable procedures

Description:
------------
When calling executable procedure, php works good, that means that
ibase_query returns FALSE and IBase_Errmsg() contains code and text of
exception returned by stored procedure. 

However, when calling selectable procedure ("select a, b from
procedure_name"), ibase_query returns TRUE and exception is returned as
unhandlingable php warning when calling ibase_fetch_row/assoc/object. 

Reproduce code:
---------------
$s = ibase_query ("select var from procedure_name");
If(!$s){
echo "FireBird returned error: ".IBase_Errmsg();
}
Else{
while($d=ibase_fetch_row($s)){
echo $d[0];
}
}

Expected result:
----------------
FireBird returned error: Some exception returned by procedure_name

Actual result:
--------------
Warning: ibase_fetch_assoc() [function.ibase-fetch-assoc]: exception 1
Some exception returned by procedure_name in /var/.../script.php on line
xx

-- 
Edit bug report at http://bugs.php.net/?id=30073&edit=1
-- 
Try a CVS snapshot (php4):   http://bugs.php.net/fix.php?id=30073&r=trysnapshot4
Try a CVS snapshot (php5.0): http://bugs.php.net/fix.php?id=30073&r=trysnapshot50
Try a CVS snapshot (php5.1): http://bugs.php.net/fix.php?id=30073&r=trysnapshot51
Fixed in CVS:                http://bugs.php.net/fix.php?id=30073&r=fixedcvs
Fixed in release:            http://bugs.php.net/fix.php?id=30073&r=alreadyfixed
Need backtrace:              http://bugs.php.net/fix.php?id=30073&r=needtrace
Need Reproduce Script:       http://bugs.php.net/fix.php?id=30073&r=needscript
Try newer version:           http://bugs.php.net/fix.php?id=30073&r=oldversion
Not developer issue:         http://bugs.php.net/fix.php?id=30073&r=support
Expected behavior:           http://bugs.php.net/fix.php?id=30073&r=notwrong
Not enough info:             http://bugs.php.net/fix.php?id=30073&r=notenoughinfo
Submitted twice:             http://bugs.php.net/fix.php?id=30073&r=submittedtwice
register_globals:            http://bugs.php.net/fix.php?id=30073&r=globals
PHP 3 support discontinued:  http://bugs.php.net/fix.php?id=30073&r=php3
Daylight Savings:            http://bugs.php.net/fix.php?id=30073&r=dst
IIS Stability:               http://bugs.php.net/fix.php?id=30073&r=isapi
Install GNU Sed:             http://bugs.php.net/fix.php?id=30073&r=gnused
Floating point limitations:  http://bugs.php.net/fix.php?id=30073&r=float
MySQL Configuration Error:   http://bugs.php.net/fix.php?id=30073&r=mysqlcfg

Reply via email to