Skip to content

Commit e9cb353

Browse files
author
Thies C. Arntzen
committed
added RESOURCE-returning
1 parent cab8290 commit e9cb353

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

ext/oracle/oracle.c

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -591,7 +591,7 @@ void php3_Ora_Do_Logon(INTERNAL_FUNCTION_PARAMETERS, int persistent)
591591
NULL);
592592

593593
efree(hashed_details);
594-
return_value->type = IS_LONG;
594+
return_value->type = IS_RESOURCE;
595595
}
596596

597597
/* {{{ proto int ora_logoff(int connection)
@@ -653,7 +653,7 @@ void php3_Ora_Open(INTERNAL_FUNCTION_PARAMETERS)
653653
cursor->open = 1;
654654
cursor->conn_ptr = conn;
655655
cursor->conn_id = conn_ind;
656-
RETURN_LONG(ora_add_cursor(list, cursor));
656+
RETURN_RESOURCE(ora_add_cursor(list, cursor));
657657
}
658658
/* }}} */
659659

@@ -1099,7 +1099,7 @@ void php3_Ora_Do(INTERNAL_FUNCTION_PARAMETERS)
10991099
}
11001100
}
11011101

1102-
RETURN_LONG(ora_add_cursor(list, cursor));
1102+
RETURN_RESOURCE(ora_add_cursor(list, cursor));
11031103
}
11041104
/* }}} */
11051105

0 commit comments

Comments
 (0)