From e9cb3539ad24d0a3c60b30fd7c21f315f76dc367 Mon Sep 17 00:00:00 2001 From: "Thies C. Arntzen" Date: Mon, 5 Jul 1999 07:03:44 +0000 Subject: [PATCH] added RESOURCE-returning --- ext/oracle/oracle.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) 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)); } /* }}} */ -- 2.40.0