From: Nikita Popov Date: Mon, 2 Jan 2017 22:47:30 +0000 (+0100) Subject: Fix data_size decrement X-Git-Tag: php-7.1.1RC1~26 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=43ed89ea3185cedcdacef2683d4154cab8884654;p=php Fix data_size decrement We don't want to decrement the pointer... --- diff --git a/ext/mysqlnd/mysqlnd_wireprotocol.c b/ext/mysqlnd/mysqlnd_wireprotocol.c index d6fa9017bd..322f187ef5 100644 --- a/ext/mysqlnd/mysqlnd_wireprotocol.c +++ b/ext/mysqlnd/mysqlnd_wireprotocol.c @@ -1531,7 +1531,7 @@ php_mysqlnd_read_row_ex(MYSQLND_PFC * pfc, pool->free_chunk(pool, *buffer); *buffer = NULL; } - *data_size--; + (*data_size)--; DBG_RETURN(ret); } /* }}} */