From: Derick Rethans Date: Tue, 10 Oct 2000 16:58:27 +0000 (+0000) Subject: - Reserved the patch X-Git-Tag: php-4.0.3~27 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=a03858c40be61d35e6191100c77475b1bd2180a8;p=php - Reserved the patch # Please check if it works, as I'm not be able to test it # Blame CaPS for this one :) --- 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;