mirror of
https://github.com/php/php-src.git
synced 2025-08-15 21:48:51 +02:00
Merge branch 'PHP-7.1'
* PHP-7.1: Fix for sporadic segfault with MYSQLI_OPT_INT_AND_FLOAT_NATIVE news entry for PR #2249
This commit is contained in:
commit
dfb6cdb617
2 changed files with 11 additions and 1 deletions
4
NEWS
4
NEWS
|
@ -66,6 +66,10 @@ PHP NEWS
|
|||
- Mcrypt:
|
||||
. The deprecated mcrypt extension has been moved to PECL. (leigh)
|
||||
|
||||
- mysqlnd:
|
||||
. Fixed bug #73800 (sporadic segfault with MYSQLI_OPT_INT_AND_FLOAT_NATIVE).
|
||||
(vanviegen)
|
||||
|
||||
- PDO:
|
||||
. Add "Sent SQL" to debug dump for emulated prepares. (Adam Baratz)
|
||||
|
||||
|
|
|
@ -1477,7 +1477,12 @@ php_mysqlnd_read_row_ex(MYSQLND_PFC * pfc,
|
|||
zero-length byte, don't read the body, there is no such.
|
||||
*/
|
||||
|
||||
*data_size = 0;
|
||||
/*
|
||||
We're allocating an extra byte, as php_mysqlnd_rowp_read_text_protocol_aux
|
||||
needs to be able to append a terminating \0 for atoi/atof.
|
||||
*/
|
||||
*data_size = 1;
|
||||
|
||||
while (1) {
|
||||
if (FAIL == mysqlnd_read_header(pfc, vio, &header, stats, error_info)) {
|
||||
ret = FAIL;
|
||||
|
@ -1526,6 +1531,7 @@ php_mysqlnd_read_row_ex(MYSQLND_PFC * pfc,
|
|||
pool->free_chunk(pool, *buffer);
|
||||
*buffer = NULL;
|
||||
}
|
||||
*data_size--;
|
||||
DBG_RETURN(ret);
|
||||
}
|
||||
/* }}} */
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue