diff options
Diffstat (limited to 'ext/oracle/oracle.c')
-rw-r--r-- | ext/oracle/oracle.c | 3 |
1 files changed, 1 insertions, 2 deletions
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; |