Skip to content

Commit d39215a

Browse files
committed
Fix segfault when inserting null (tests/003.phpt)
003.phpt segfaulted at null insert on PHP8.4. More testing needed with different PHP versions
1 parent e297ad3 commit d39215a

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

ibase_query.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -747,6 +747,7 @@ static int _php_ibase_bind(XSQLDA *sqlda, zval *b_vars, BIND_BUF *buf, /* {{{ */
747747

748748
case IS_NULL:
749749
buf[i].sqlind = -1;
750+
sqlda->sqlvar->sqldata = NULL;
750751

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

0 commit comments

Comments
 (0)