Skip to content

Commit 267f969

Browse files
authored
Merge pull request #60 from php/fix/php84-compilation
fix: compile on php84
2 parents c03e9b7 + 3af03bd commit 267f969

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

ibm_db2.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6233,10 +6233,10 @@ static void _php_db2_bind_fetch_helper(INTERNAL_FUNCTION_PARAMETERS, int op)
62336233
loc_length = stmt_res->column_info[i].loc_ind;
62346234
switch(stmt_res->s_case_mode) {
62356235
case DB2_CASE_LOWER:
6236-
stmt_res->column_info[i].name = (SQLCHAR *)php_strtolower((char *)stmt_res->column_info[i].name, strlen((char *)stmt_res->column_info[i].name));
6236+
stmt_res->column_info[i].name = (SQLCHAR *)zend_str_tolower_dup((char *)stmt_res->column_info[i].name, strlen((char *)stmt_res->column_info[i].name));
62376237
break;
62386238
case DB2_CASE_UPPER:
6239-
stmt_res->column_info[i].name = (SQLCHAR *)php_strtoupper((char *)stmt_res->column_info[i].name, strlen((char *)stmt_res->column_info[i].name));
6239+
stmt_res->column_info[i].name = (SQLCHAR *)zend_str_toupper_dup((char *)stmt_res->column_info[i].name, strlen((char *)stmt_res->column_info[i].name));
62406240
break;
62416241
case DB2_CASE_NATURAL:
62426242
default:

0 commit comments

Comments
 (0)