From a03858c40be61d35e6191100c77475b1bd2180a8 Mon Sep 17 00:00:00 2001 From: Derick Rethans Date: Tue, 10 Oct 2000 16:58:27 +0000 Subject: - Reserved the patch # Please check if it works, as I'm not be able to test it # Blame CaPS for this one :) --- ext/oracle/oracle.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'ext/oracle/oracle.c') diff --git a/ext/oracle/oracle.c b/ext/oracle/oracle.c index beb6788947..b354b26a80 100644 --- a/ext/oracle/oracle.c +++ b/ext/oracle/oracle.c @@ -601,9 +601,8 @@ PHP_FUNCTION(ora_close) if (zend_get_parameters_ex(1, &arg) == FAILURE) { WRONG_PARAM_COUNT; } + ZEND_FETCH_RESOURCE(cursor, oraCursor *, arg, -1, "Oracle-Cursor", le_cursor); - if (ZEND_FETCH_RESOURCE(cursor, oraCursor *, arg, -1, "Oracle-Cursor", le_cursor) == NULL) - RETURN_FALSE; zend_list_delete((*arg)->value.lval); RETURN_TRUE; -- cgit v1.2.1