summaryrefslogtreecommitdiff
path: root/ext/mysqlnd/mysqlnd_wireprotocol.c
diff options
context:
space:
mode:
authorAnatol Belski <ab@php.net>2017-09-13 14:12:53 +0200
committerAnatol Belski <ab@php.net>2017-09-13 14:12:53 +0200
commit756aaaf806e4fe291b98c6ca3f44b7526c733cc3 (patch)
treeca28c63efda83820991e4176c9f98c5b276e9709 /ext/mysqlnd/mysqlnd_wireprotocol.c
parent1edc5aea33aa7aeff489110c10f5e65a76e09d06 (diff)
parentb134793b328a8bbf38800518469b0f25aa8de49f (diff)
downloadphp-git-756aaaf806e4fe291b98c6ca3f44b7526c733cc3.tar.gz
Merge branch 'PHP-7.2'
* PHP-7.2: Fixed bug #75018, fixed bug #75177
Diffstat (limited to 'ext/mysqlnd/mysqlnd_wireprotocol.c')
-rw-r--r--ext/mysqlnd/mysqlnd_wireprotocol.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/ext/mysqlnd/mysqlnd_wireprotocol.c b/ext/mysqlnd/mysqlnd_wireprotocol.c
index b5ab7b1a56..9d951746f8 100644
--- a/ext/mysqlnd/mysqlnd_wireprotocol.c
+++ b/ext/mysqlnd/mysqlnd_wireprotocol.c
@@ -1761,7 +1761,7 @@ php_mysqlnd_rowp_read_text_protocol_aux(MYSQLND_MEMORY_POOL_CHUNK * row_buffer,
if (Z_TYPE_P(current_field) == IS_LONG && !as_int_or_float) {
/* we are using the text protocol, so convert to string */
char tmp[22];
- const size_t tmp_len = sprintf((char *)&tmp, MYSQLND_LLU_SPEC, Z_LVAL_P(current_field));
+ const size_t tmp_len = sprintf((char *)&tmp, MYSQLND_LLU_SPEC, (uint64_t) Z_LVAL_P(current_field));
ZVAL_STRINGL(current_field, tmp, tmp_len);
} else if (Z_TYPE_P(current_field) == IS_STRING) {
/* nothing to do here, as we want a string and ps_fetch_from_1_to_8_bytes() has given us one */