1
0
mirror of https://github.com/php/php-src.git synced 2026-04-06 15:43:13 +02:00
This commit is contained in:
Andrey Hristov
2012-02-02 15:00:42 +00:00
parent cc1829d187
commit da0da10bc9

View File

@@ -1177,7 +1177,11 @@ php_mysqlnd_rset_field_read(void * _packet, MYSQLND_CONN_DATA * conn TSRMLS_DC)
BAIL_IF_NO_MORE_DATA;
}
/* 1 byte filler */
/* 1 byte length */
if (12 != *p) {
DBG_ERR_FMT("Protocol error. Server sent false length. Expected 12 got %d", (int) *p);
php_error_docref(NULL TSRMLS_CC, E_WARNING, "Protocol error. Server sent false length. Expected 12");
}
p++;
BAIL_IF_NO_MORE_DATA;