summaryrefslogtreecommitdiff
path: root/ext/oracle/oracle.c
diff options
context:
space:
mode:
Diffstat (limited to 'ext/oracle/oracle.c')
-rw-r--r--ext/oracle/oracle.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/ext/oracle/oracle.c b/ext/oracle/oracle.c
index b354b26a80..beb6788947 100644
--- a/ext/oracle/oracle.c
+++ b/ext/oracle/oracle.c
@@ -601,8 +601,9 @@ 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;