]> granicus.if.org Git - php/commitdiff
Fixed bug #52636 (php_mysql_fetch_hash writes long value into int)
authorKalle Sommer Nielsen <kalle@php.net>
Wed, 18 Aug 2010 20:00:18 +0000 (20:00 +0000)
committerKalle Sommer Nielsen <kalle@php.net>
Wed, 18 Aug 2010 20:00:18 +0000 (20:00 +0000)
# Tested by rein at basefarm dot no

ext/mysql/php_mysql.c

index 6fd51f26398e8138a0e2470803b6158daa1cf7d6..ab6c2bb62cd4ce9a5c8dfbfd78559e014c65d4a4 100644 (file)
@@ -2008,7 +2008,7 @@ PHP_FUNCTION(mysql_num_fields)
 
 /* {{{ php_mysql_fetch_hash
  */
-static void php_mysql_fetch_hash(INTERNAL_FUNCTION_PARAMETERS, int result_type, int expected_args, int into_object)
+static void php_mysql_fetch_hash(INTERNAL_FUNCTION_PARAMETERS, long result_type, int expected_args, int into_object)
 {
        MYSQL_RES *mysql_result;
        zval            *res, *ctor_params = NULL;