From 2bcdd36879a8db393fa102e89c0cf8c2bfbb21f3 Mon Sep 17 00:00:00 2001 From: Ilia Alshanetsky Date: Sun, 11 Jan 2009 23:52:29 +0000 Subject: [PATCH] Improved parameter handling --- ext/interbase/ibase_query.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/ext/interbase/ibase_query.c b/ext/interbase/ibase_query.c index b6c4709092..e5b8131a50 100644 --- a/ext/interbase/ibase_query.c +++ b/ext/interbase/ibase_query.c @@ -1212,7 +1212,7 @@ PHP_FUNCTION(ibase_affected_rows) { ibase_trans *trans = NULL; ibase_db_link *ib_link; - zval *arg; + zval *arg = NULL; RESET_ERRMSG; @@ -1220,7 +1220,7 @@ PHP_FUNCTION(ibase_affected_rows) return; } - if (ZEND_NUM_ARGS() == 0) { + if (!arg) { ZEND_FETCH_RESOURCE2(ib_link, ibase_db_link *, NULL, IBG(default_link), LE_LINK, le_link, le_plink); if (ib_link->tr_list == NULL || ib_link->tr_list->trans == NULL) { RETURN_FALSE; -- 2.50.1