]> granicus.if.org Git - php/commitdiff
- Made ora_close return values like it should (thanks to james@php.net and
authorDerick Rethans <derick@php.net>
Mon, 9 Oct 2000 18:45:56 +0000 (18:45 +0000)
committerDerick Rethans <derick@php.net>
Mon, 9 Oct 2000 18:45:56 +0000 (18:45 +0000)
  mathieu@gginter.net)

ext/oracle/oracle.c

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