From: Georg Richter Date: Sun, 15 Aug 2004 05:50:29 +0000 (+0000) Subject: fixed default for mysqli_fetch_array X-Git-Tag: php-5.0.2RC1~131 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=1410d8c0b29782e5c7a03b4b4df61f0077d2afa9;p=php fixed default for mysqli_fetch_array --- diff --git a/ext/mysqli/mysqli.c b/ext/mysqli/mysqli.c index 4e01044e6f..b10b067783 100644 --- a/ext/mysqli/mysqli.c +++ b/ext/mysqli/mysqli.c @@ -612,7 +612,7 @@ void php_mysqli_fetch_into_hash(INTERNAL_FUNCTION_PARAMETERS, int override_flags } fetchtype = override_flags; } else { - fetchtype = MYSQLI_ASSOC; + fetchtype = MYSQLI_BOTH; if (zend_parse_method_parameters(ZEND_NUM_ARGS() TSRMLS_CC, getThis(), "O|l", &mysql_result, mysqli_result_class_entry, &fetchtype) == FAILURE) { return; }