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:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user