From: Zeev Suraski Date: Sun, 14 Jan 2001 09:30:17 +0000 (+0000) Subject: Don't fetch numeric indices in mysql_fetch_object() X-Git-Tag: php-4.0.5RC1~587 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=27afea5c6d3e79beea2b512494b7e7639f802410;p=php Don't fetch numeric indices in mysql_fetch_object() --- diff --git a/ext/mysql/php_mysql.c b/ext/mysql/php_mysql.c index 5e6e64e448..a6ae675709 100644 --- a/ext/mysql/php_mysql.c +++ b/ext/mysql/php_mysql.c @@ -1442,7 +1442,7 @@ PHP_FUNCTION(mysql_fetch_row) Fetch a result row as an object */ PHP_FUNCTION(mysql_fetch_object) { - php_mysql_fetch_hash(INTERNAL_FUNCTION_PARAM_PASSTHRU, 0); + php_mysql_fetch_hash(INTERNAL_FUNCTION_PARAM_PASSTHRU, MYSQL_ASSOC); if (return_value->type==IS_ARRAY) { return_value->type=IS_OBJECT; return_value->value.obj.properties = return_value->value.ht;