Skip to content

Commit c2c3467

Browse files
committed
Fixed bug #52636 (php_mysql_fetch_hash writes long value into int)
# Tested by rein at basefarm dot no
1 parent 2fb2f81 commit c2c3467

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

NEWS

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,8 @@
1111
(Kalle)
1212
- Changed the $context parameter on copy() to actually have an effect. (Kalle)
1313

14+
- Fixed bug #52636 (php_mysql_fetch_hash writes long value into int).
15+
(Kalle, rein at basefarm dot no)
1416
- Fixed bug #52613 (crash in mysqlnd after hitting memory limit). (Andrey)
1517
- Fixed bug #52573 (SplFileObject::fscanf Segmentation fault). (Felipe)
1618
- Fixed bug #52546 (pdo_dblib segmentation fault when iterating MONEY values).

ext/mysql/php_mysql.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2006,7 +2006,7 @@ PHP_FUNCTION(mysql_num_fields)
20062006

20072007
/* {{{ php_mysql_fetch_hash
20082008
*/
2009-
static void php_mysql_fetch_hash(INTERNAL_FUNCTION_PARAMETERS, int result_type, int expected_args, int into_object)
2009+
static void php_mysql_fetch_hash(INTERNAL_FUNCTION_PARAMETERS, long result_type, int expected_args, int into_object)
20102010
{
20112011
MYSQL_RES *mysql_result;
20122012
zval *res, *ctor_params = NULL;

0 commit comments

Comments
 (0)