summaryrefslogtreecommitdiff
path: root/ext/mysql/php_mysql.c
diff options
context:
space:
mode:
authorZeev Suraski <zeev@php.net>2001-01-14 09:30:17 +0000
committerZeev Suraski <zeev@php.net>2001-01-14 09:30:17 +0000
commit27afea5c6d3e79beea2b512494b7e7639f802410 (patch)
treea14812e771b5994e2a66b60f33833245907cc763 /ext/mysql/php_mysql.c
parentd9671d5d492bf04695d3b10981cac141e12d5946 (diff)
downloadphp-git-27afea5c6d3e79beea2b512494b7e7639f802410.tar.gz
Don't fetch numeric indices in mysql_fetch_object()
Diffstat (limited to 'ext/mysql/php_mysql.c')
-rw-r--r--ext/mysql/php_mysql.c2
1 files changed, 1 insertions, 1 deletions
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;