cvs: php4 /ext/oracle oracle.c
| From: | Derick Rethans | Date: | Mon, 09 Oct 2000 18:45:55 +0000 |
| Subject: | cvs: php4 /ext/oracle oracle.c | ||
| Groups: | php.cvs | ||
| Request: | Send a blank email to php-cvs+get-1966@lists.php.net to get a copy of this message | ||
derick Mon Oct 9 11:45:55 2000 EDT
Modified files:
/php4/ext/oracle oracle.c
Log:
- Made ora_close return values like it should (thanks to james@php.net and
mathieu@gginter.net)
Index: php4/ext/oracle/oracle.c
diff -u php4/ext/oracle/oracle.c:1.52 php4/ext/oracle/oracle.c:1.53
--- php4/ext/oracle/oracle.c:1.52 Sat Jul 15 07:15:06 2000
+++ php4/ext/oracle/oracle.c Mon Oct 9 11:45:55 2000
@@ -601,8 +601,9 @@
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;