#30073 [Opn->Fbk]: Exception handling not work for selectable procedures

From: Date: Wed, 23 Feb 2005 20:31:27 +0000
Subject: #30073 [Opn->Fbk]: Exception handling not work for selectable procedures
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-74483@lists.php.net to get a copy of this message
ID: 30073 Updated by: abies@php.net Reported By: almad at dracidoupe dot cz -Status: Open +Status: Feedback Bug Type: InterBase related Operating System: Gentoo Linux PHP Version: 5.0.1 New Comment: Please try using this CVS snapshot: http://snaps.php.net/php5-STABLE-latest.tar.gz For Windows: http://snaps.php.net/win32/php5.0-win32-latest.zip Previous Comments: ------------------------------------------------------------------------ [2004-09-13 14:31:55] almad at dracidoupe dot cz 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 this bug report at http://bugs.php.net/?id=30073&edit=1

« previous php.bugs (#74483) next »