From: Derick Rethans Date: Mon, 9 Oct 2000 18:45:56 +0000 (+0000) Subject: - Made ora_close return values like it should (thanks to james@php.net and X-Git-Tag: php-4.0.3~31 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=92b3dd06e301db83ded4a5609272b6c6d4d4d68f;p=php - Made ora_close return values like it should (thanks to james@php.net and mathieu@gginter.net) --- 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;