1
0
mirror of https://github.com/php/php-src.git synced 2026-04-19 05:51:02 +02:00

- Made ora_close return values like it should (thanks to james@php.net and

mathieu@gginter.net)
This commit is contained in:
Derick Rethans
2000-10-09 18:45:56 +00:00
parent 046ecab96f
commit 92b3dd06e3

View File

@@ -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;