Commit:    a17559d4224eea0148ad67de9bb1cca22cbef7f6
Author:    Andrey Hristov <and...@php.net>         Wed, 31 Oct 2012 18:26:09 
+0100
Parents:   b3cd64afef4d7c35d8551d34858f98a6286db975
Branches:  PHP-5.3 PHP-5.4 master

Link:       
http://git.php.net/?p=php-src.git;a=commitdiff;h=a17559d4224eea0148ad67de9bb1cca22cbef7f6

Log:
read 1 instead of 2 bytes. The next 2 bytes are 2 and thus not a problem

Changed paths:
  M  ext/mysqlnd/mysqlnd_wireprotocol.c


Diff:
diff --git a/ext/mysqlnd/mysqlnd_wireprotocol.c 
b/ext/mysqlnd/mysqlnd_wireprotocol.c
index 1318c37..ec0ff49 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;


--
PHP CVS Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to