diff options
| author | Xinchen Hui <laruence@php.net> | 2015-06-11 13:35:43 +0800 |
|---|---|---|
| committer | Xinchen Hui <laruence@php.net> | 2015-06-11 13:35:43 +0800 |
| commit | 141f0ca18cd0dd3846cd5e36e59a798e70fc6a6e (patch) | |
| tree | 92accdc79a7c2ba3463a18a338629ab87129dff8 /ext/mysqlnd/mysqlnd_ps.c | |
| parent | 7f609231996885de5d4fd7a5e0410b62b4338d76 (diff) | |
| download | php-git-141f0ca18cd0dd3846cd5e36e59a798e70fc6a6e.tar.gz | |
Fixed Bug #69796 mysqli_stmt::fetch doesn't assign null values to bound variables
Diffstat (limited to 'ext/mysqlnd/mysqlnd_ps.c')
| -rw-r--r-- | ext/mysqlnd/mysqlnd_ps.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/ext/mysqlnd/mysqlnd_ps.c b/ext/mysqlnd/mysqlnd_ps.c index 70ea4e4874..767ba34ab0 100644 --- a/ext/mysqlnd/mysqlnd_ps.c +++ b/ext/mysqlnd/mysqlnd_ps.c @@ -925,6 +925,8 @@ mysqlnd_stmt_fetch_row_unbuffered(MYSQLND_RES * result, void * param, unsigned i ZVAL_COPY_VALUE(result, data); /* copied data, thus also the ownership. Thus null data */ ZVAL_NULL(data); + } else { + ZVAL_NULL(result); } } } |
