]> granicus.if.org Git - php/commitdiff
- Reserved the patch
authorDerick Rethans <derick@php.net>
Tue, 10 Oct 2000 16:58:27 +0000 (16:58 +0000)
committerDerick Rethans <derick@php.net>
Tue, 10 Oct 2000 16:58:27 +0000 (16:58 +0000)
# Please check if it works, as I'm not be able to test it
# Blame CaPS for this one :)

ext/oracle/oracle.c

index beb67889475462f5901bf0f16b4320ae0975cff8..b354b26a8030a6f475dfa60893c29578e2b13410 100644 (file)
@@ -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;