diff options
author | Nikita Popov <nikita.ppv@gmail.com> | 2019-06-12 12:42:53 +0200 |
---|---|---|
committer | Nikita Popov <nikita.ppv@gmail.com> | 2019-06-12 13:17:25 +0200 |
commit | e1e275eefd0ea8bc394a9058244751349cf77b5c (patch) | |
tree | 3f7f3e91cb5b269ce2f143075c571d3e401acaaa /ext/mysqlnd/mysqlnd_wireprotocol.c | |
parent | 4d65d53805591e25767452910d0cf716f29399c9 (diff) | |
download | php-git-e1e275eefd0ea8bc394a9058244751349cf77b5c.tar.gz |
Fix mysqlnd printf modifiers
By moving the the standard macros...
Diffstat (limited to 'ext/mysqlnd/mysqlnd_wireprotocol.c')
-rw-r--r-- | ext/mysqlnd/mysqlnd_wireprotocol.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/ext/mysqlnd/mysqlnd_wireprotocol.c b/ext/mysqlnd/mysqlnd_wireprotocol.c index b56a92c152..6ef48a4a7d 100644 --- a/ext/mysqlnd/mysqlnd_wireprotocol.c +++ b/ext/mysqlnd/mysqlnd_wireprotocol.c @@ -1661,7 +1661,7 @@ php_mysqlnd_rowp_read_text_protocol_aux(MYSQLND_ROW_BUFFER * row_buffer, zval * 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, (uint64_t) Z_LVAL_P(current_field)); + const size_t tmp_len = sprintf((char *)&tmp, ZEND_ULONG_FMT, 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 */ |