Skip to content

Commit 141f0ca

Browse files
committed
Fixed Bug #69796 mysqli_stmt::fetch doesn't assign null values to bound variables
1 parent 7f60923 commit 141f0ca

File tree

2 files changed

+6
-0
lines changed

2 files changed

+6
-0
lines changed

NEWS

+4
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,10 @@ PHP NEWS
88
. Fixed bug #69781 (phpinfo() reports Professional Editions of Windows
99
7/8/8.1/10 as "Business"). (Christian Wenz)
1010

11+
- mysqlnd:
12+
. Fixed Bug #69796 (mysqli_stmt::fetch doesn't assign null values to
13+
bound variables). (Laruence);
14+
1115
- PDO_pgsql:
1216
. Fixed bug #69752 (PDOStatement::execute() leaks memory with DML
1317
Statements when closeCuror() is u). (Philip Hofstetter)

ext/mysqlnd/mysqlnd_ps.c

+2
Original file line numberDiff line numberDiff line change
@@ -925,6 +925,8 @@ mysqlnd_stmt_fetch_row_unbuffered(MYSQLND_RES * result, void * param, unsigned i
925925
ZVAL_COPY_VALUE(result, data);
926926
/* copied data, thus also the ownership. Thus null data */
927927
ZVAL_NULL(data);
928+
} else {
929+
ZVAL_NULL(result);
928930
}
929931
}
930932
}

0 commit comments

Comments
 (0)