summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorArd Biesheuvel <abies@php.net>2004-05-04 12:42:54 +0000
committerArd Biesheuvel <abies@php.net>2004-05-04 12:42:54 +0000
commitd6838a86f355f82dfde3c12253617924d7421896 (patch)
treef78c04f10ecbf481ae18306afb1aba189c3805a1
parent46f2330c19feee75faa686a671978eec733a4392 (diff)
downloadphp-git-d6838a86f355f82dfde3c12253617924d7421896.tar.gz
ibase_query(): Be careful not to return true on error conditions
-rw-r--r--ext/interbase/ibase_query.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/ext/interbase/ibase_query.c b/ext/interbase/ibase_query.c
index a29a64c328..e8436c03a4 100644
--- a/ext/interbase/ibase_query.c
+++ b/ext/interbase/ibase_query.c
@@ -941,7 +941,7 @@ static int _php_ibase_exec(INTERNAL_FUNCTION_PARAMETERS, ibase_result **ib_resul
return SUCCESS;
default:
- RETVAL_TRUE;
+ RETVAL_FALSE;
}
/* allocate sqlda and output buffers */
@@ -1027,7 +1027,11 @@ static int _php_ibase_exec(INTERNAL_FUNCTION_PARAMETERS, ibase_result **ib_resul
if (affected_rows > 0) {
ib_query->trans->affected_rows = affected_rows;
RETVAL_LONG(affected_rows);
+ break;
}
+
+ default:
+ RETVAL_TRUE;
}
rv = SUCCESS;