com php-src: Fixed Bug #69796 mysqli_stmt::fetch doesn 't assign null values to bound variables: NEW S ext/mysqlnd/mysqlnd_ps.c

From: Date: Thu, 11 Jun 2015 05:35:43 +0000
Subject: com php-src: Fixed Bug #69796 mysqli_stmt::fetch doesn 't assign null values to bound variables: NEW S ext/mysqlnd/mysqlnd_ps.c
Groups: php.cvs 
Request: Send a blank email to php-cvs+get-87208@lists.php.net to get a copy of this message
Commit: 141f0ca18cd0dd3846cd5e36e59a798e70fc6a6e Author: Xinchen Hui <laruence@php.net> Thu, 11 Jun 2015 13:35:43 +0800 Parents: 7f609231996885de5d4fd7a5e0410b62b4338d76 Branches: master Link: http://git.php.net/?p=php-src.git;a=commitdiff;h=141f0ca18cd0dd3846cd5e36e59a798e70fc6a6e Log: Fixed Bug #69796 mysqli_stmt::fetch doesn't assign null values to bound variables Bugs: https://bugs.php.net/69796 Changed paths: M NEWS M ext/mysqlnd/mysqlnd_ps.c Diff: diff --git a/NEWS b/NEWS index 9409509..ac4ba7c 100644 --- a/NEWS +++ b/NEWS @@ -8,6 +8,10 @@ PHP NEWS . Fixed bug #69781 (phpinfo() reports Professional Editions of Windows 7/8/8.1/10 as "Business"). (Christian Wenz) +- mysqlnd: + . Fixed Bug #69796 (mysqli_stmt::fetch doesn't assign null values to + bound variables). (Laruence); + - PDO_pgsql: . Fixed bug #69752 (PDOStatement::execute() leaks memory with DML Statements when closeCuror() is u). (Philip Hofstetter) diff --git a/ext/mysqlnd/mysqlnd_ps.c b/ext/mysqlnd/mysqlnd_ps.c index 70ea4e4..767ba34 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); } } }

« previous php.cvs (#87208) next »