diff options
author | Thies C. Arntzen <thies@php.net> | 1999-07-05 07:03:44 +0000 |
---|---|---|
committer | Thies C. Arntzen <thies@php.net> | 1999-07-05 07:03:44 +0000 |
commit | e9cb3539ad24d0a3c60b30fd7c21f315f76dc367 (patch) | |
tree | 7b8d71f41d39af70de1554450b0712c686ebf07c /ext/oracle/oracle.c | |
parent | cab8290b8ef173d286b568093293366d675bfbdf (diff) | |
download | php-git-e9cb3539ad24d0a3c60b30fd7c21f315f76dc367.tar.gz |
added RESOURCE-returning
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)); } /* }}} */ |