php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Doc Bug #50491 mysql_fetch_object return value incorrect
Submitted: 2009-12-16 13:15 UTC Modified: 2009-12-16 13:54 UTC
From: presto dot dk at gmail dot com Assigned:
Status: Closed Package: Documentation problem
PHP Version: Irrelevant OS: N/A
Private report: No CVE-ID: None
 [2009-12-16 13:15 UTC] presto dot dk at gmail dot com
Description:
------------
mysql_fetch_object return value describes the mysql_fetch_row behavior.

Reproduce code:
---------------
---
From manual page: function.mysql-fetch-object#Return Values
---


Expected result:
----------------
mysql_fetch_object() fetches one row of data from the result associated with the specified result identifier. The row is returned as an object. Each result column is stored in an object property with the field name as property name and field value as property value.

Actual result:
--------------
mysql_fetch_row() fetches one row of data from the result associated with the specified result identifier. The row is returned as an array. Each result column is stored in an array offset, starting at offset 0.

Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2009-12-16 13:54 UTC] svn@php.net
Automatic comment from SVN on behalf of rquadling
Revision: http://svn.php.net/viewvc/?view=revision&revision=292209
Log: Remove incorrect/redundant paragraph. Fix#50491
 [2009-12-16 13:54 UTC] rquadling@php.net
This bug has been fixed in the documentation's XML sources. Since the
online and downloadable versions of the documentation need some time
to get updated, we would like to ask you to be a bit patient.

Thank you for the report, and for helping us make our documentation better.

Redundant paragraph removed.
 
PHP Copyright © 2001-2026 The PHP Group
All rights reserved.
Last updated: Thu Oct 08 04:00:01 2026 UTC