diff options
author | Andrey Hristov <andrey@php.net> | 2012-10-31 18:26:09 +0100 |
---|---|---|
committer | Andrey Hristov <andrey@php.net> | 2012-10-31 18:26:09 +0100 |
commit | a17559d4224eea0148ad67de9bb1cca22cbef7f6 (patch) | |
tree | c65fe941753a8baed9fcfeb371d8fe36c349e69f | |
parent | b3cd64afef4d7c35d8551d34858f98a6286db975 (diff) | |
download | php-git-a17559d4224eea0148ad67de9bb1cca22cbef7f6.tar.gz |
read 1 instead of 2 bytes. The next 2 bytes are 2 and thus not a problem
-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 1318c37a73..ec0ff496f4 100644 --- a/ext/mysqlnd/mysqlnd_wireprotocol.c +++ b/ext/mysqlnd/mysqlnd_wireprotocol.c @@ -982,7 +982,7 @@ php_mysqlnd_rset_field_read(void *_packet, MYSQLND *conn TSRMLS_DC) p += 2; BAIL_IF_NO_MORE_DATA; - meta->decimals = uint2korr(p); + meta->decimals = uint1korr(p); p += 1; BAIL_IF_NO_MORE_DATA; |