From 43ed89ea3185cedcdacef2683d4154cab8884654 Mon Sep 17 00:00:00 2001 From: Nikita Popov Date: Mon, 2 Jan 2017 23:47:30 +0100 Subject: [PATCH] Fix data_size decrement We don't want to decrement the pointer... --- ext/mysqlnd/mysqlnd_wireprotocol.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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); } /* }}} */ -- 2.40.0