From 92b3dd06e301db83ded4a5609272b6c6d4d4d68f Mon Sep 17 00:00:00 2001 From: Derick Rethans Date: Mon, 9 Oct 2000 18:45:56 +0000 Subject: [PATCH] - Made ora_close return values like it should (thanks to james@php.net and mathieu@gginter.net) --- ext/oracle/oracle.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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; -- 2.50.1