--- embedaddon/php/ext/mysqlnd/mysqlnd_ps_codec.c 2013/07/22 01:31:56 1.1.1.3 +++ embedaddon/php/ext/mysqlnd/mysqlnd_ps_codec.c 2013/10/14 08:02:25 1.1.1.4 @@ -18,7 +18,7 @@ +----------------------------------------------------------------------+ */ -/* $Id: mysqlnd_ps_codec.c,v 1.1.1.3 2013/07/22 01:31:56 misho Exp $ */ +/* $Id: mysqlnd_ps_codec.c,v 1.1.1.4 2013/10/14 08:02:25 misho Exp $ */ #include "php.h" #include "mysqlnd.h" #include "mysqlnd_wireprotocol.h" @@ -626,6 +626,7 @@ mysqlnd_stmt_execute_store_params(MYSQLND_STMT * s, ze *p += null_count; } + left = (*buf_len - (*p - *buf)); /* 1. Store type information */ /* check if need to send the types even if stmt->send_types_to_server is 0. This is because