summaryrefslogtreecommitdiff
path: root/ext/oracle/oracle.c
diff options
context:
space:
mode:
authorDerick Rethans <derick@php.net>2000-10-10 16:58:27 +0000
committerDerick Rethans <derick@php.net>2000-10-10 16:58:27 +0000
commita03858c40be61d35e6191100c77475b1bd2180a8 (patch)
tree316b719eed8d126196a3695a38bbe6cc0e489f98 /ext/oracle/oracle.c
parente9ba352023eea51513c73083ed887ce3701b406c (diff)
downloadphp-git-a03858c40be61d35e6191100c77475b1bd2180a8.tar.gz
- Reserved the patch
# Please check if it works, as I'm not be able to test it # Blame CaPS for this one :)
Diffstat (limited to 'ext/oracle/oracle.c')
-rw-r--r--ext/oracle/oracle.c3
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;