diff options
Diffstat (limited to 'ext/oracle/oracle.c')
-rw-r--r-- | ext/oracle/oracle.c | 6 |
1 files 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)); } /* }}} */ |