]> granicus.if.org Git - php/commit
During refactoring of the function mysqlnd_stream_write_w_header() it was
authorAndrey Hristov <andrey@php.net>
Thu, 17 Dec 2009 12:30:58 +0000 (12:30 +0000)
committerAndrey Hristov <andrey@php.net>
Thu, 17 Dec 2009 12:30:58 +0000 (12:30 +0000)
commit22528b14a4c0055589ecc012bf6a6bd4e7bc1f57
treedd707999a77395f1362e16e509fa67e137c03ea3
parent4e06ca007f951d3d8e84bab5f40c75d2db4ab4fb
During refactoring of the function mysqlnd_stream_write_w_header() it was
found that there is a bug in the way the data is sent, although a very rare
one which will only affect very large queries which have length 16777214. The
communication will hang. A way to test it is to execute the following:
./php -r '$c=mysqli_connect("127.0.0.1","root","root","test");
$q="insert into test.tblob values(\"".str_repeat("a",256*256*256-1-34)."\")";
$c->query($q);'
NEWS
ext/mysqlnd/mysqlnd_wireprotocol.c