From: Thies C. Arntzen Date: Mon, 5 Jul 1999 07:03:44 +0000 (+0000) Subject: added RESOURCE-returning X-Git-Tag: BEFORE_REMOVING_GC_STEP1~22 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=e9cb3539ad24d0a3c60b30fd7c21f315f76dc367;p=php added RESOURCE-returning --- diff --git a/ext/oracle/oracle.c b/ext/oracle/oracle.c index 79f5c203f2..71851920dc 100644 --- a/ext/oracle/oracle.c +++ b/ext/oracle/oracle.c @@ -591,7 +591,7 @@ void php3_Ora_Do_Logon(INTERNAL_FUNCTION_PARAMETERS, int persistent) NULL); efree(hashed_details); - return_value->type = IS_LONG; + return_value->type = IS_RESOURCE; } /* {{{ proto int ora_logoff(int connection) @@ -653,7 +653,7 @@ void php3_Ora_Open(INTERNAL_FUNCTION_PARAMETERS) cursor->open = 1; cursor->conn_ptr = conn; cursor->conn_id = conn_ind; - RETURN_LONG(ora_add_cursor(list, cursor)); + RETURN_RESOURCE(ora_add_cursor(list, cursor)); } /* }}} */ @@ -1099,7 +1099,7 @@ void php3_Ora_Do(INTERNAL_FUNCTION_PARAMETERS) } } - RETURN_LONG(ora_add_cursor(list, cursor)); + RETURN_RESOURCE(ora_add_cursor(list, cursor)); } /* }}} */