Skip to content

Commit

Permalink
Fix segfault when inserting null (tests/003.phpt)
Browse files Browse the repository at this point in the history
003.phpt segfaulted at null insert on PHP8.4. More testing needed with different PHP versions
  • Loading branch information
mlazdans committed Mar 4, 2025
1 parent e297ad3 commit d39215a
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions ibase_query.c
Original file line number Diff line number Diff line change
Expand Up @@ -747,6 +747,7 @@ static int _php_ibase_bind(XSQLDA *sqlda, zval *b_vars, BIND_BUF *buf, /* {{{ */

case IS_NULL:
buf[i].sqlind = -1;
sqlda->sqlvar->sqldata = NULL;

if (var->sqltype & SQL_ARRAY) ++array_cnt;

Expand Down

0 comments on commit d39215a

Please sign in to comment.