From e65f524f9292abe67ff305f89627a5b93051076f Mon Sep 17 00:00:00 2001 From: Georg Richter Date: Wed, 6 Apr 2005 06:48:13 +0000 Subject: [PATCH] MFH: fix for #32282 (segfault in mysqli_fetch_array on 64-bit) --- NEWS | 1 + ext/mysqli/mysqli.c | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/NEWS b/NEWS index 0b430093d9..739545f619 100644 --- a/NEWS +++ b/NEWS @@ -8,6 +8,7 @@ PHP NEWS longer then the original string). (Ilia) - Fixed bug #32491 (File upload error - unable to create a temporary file). (Uwe Schindler) +- Fixed bug #32282 (Segfault in mysqli_fetch_array on 64-bit) (Georg). - Fixed bug #28839 (SIGSEGV in interactive mode (php -a)). (kameshj at fastmail dot fm) diff --git a/ext/mysqli/mysqli.c b/ext/mysqli/mysqli.c index 677b0caf68..4e3217b167 100644 --- a/ext/mysqli/mysqli.c +++ b/ext/mysqli/mysqli.c @@ -582,7 +582,7 @@ void php_mysqli_fetch_into_hash(INTERNAL_FUNCTION_PARAMETERS, int override_flags { MYSQL_RES *result; zval *mysql_result; - int fetchtype; + long fetchtype; unsigned int i; MYSQL_FIELD *fields; MYSQL_ROW row; -- 2.50.1