php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Doc Bug #35055 Error in mysqli_fetch_object() example
Submitted: 2005-11-01 19:07 UTC Modified: 2005-11-01 19:36 UTC
From: bugs dot php at blacklettersoftware dot com Assigned:
Status: Closed Package: Documentation problem
PHP Version: Irrelevant OS:
Private report: No CVE-ID: None
 [2005-11-01 19:07 UTC] bugs dot php at blacklettersoftware dot com
Description:
------------
The online documentation for the mysqli_fetch_object() function seems to have an error in Example 1 (object oriented style). The last two statements read:

   /* free result set */
   $result->close();
}

/* close connection */
$mysqli->close();

I think the second-last statement should be:

   /* free result set */
   $result->free();



Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2005-11-01 19:36 UTC] vrana@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.

Both methods can be used plus mysqli_result::free_result(), it was documented on mysqli_free_result() page.
 
PHP Copyright © 2001-2025 The PHP Group
All rights reserved.
Last updated: Thu Sep 11 21:00:02 2025 UTC