Fix #60802 ibase_trans() gives segfault when passing params (The &argn passed to zend_parse_parameters shall be a pointer to an integer, not to an unsigned short.)

This commit is contained in:
Popa Adrian Marius 2012-01-19 22:25:54 +00:00
parent 8619b22ef3
commit d828944a61

View File

@ -1125,7 +1125,8 @@ PHP_FUNCTION(ibase_drop_db)
PHP_FUNCTION(ibase_trans)
{
unsigned short i, argn, link_cnt = 0, tpb_len = 0;
unsigned short i, link_cnt = 0, tpb_len = 0;
int argn;
char last_tpb[TPB_MAX_SIZE];
ibase_db_link **ib_link = NULL;
ibase_trans *ib_trans;