php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Doc Bug #62754 Typo/wrong method call
Submitted: 2012-08-05 17:43 UTC Modified: 2012-09-08 16:46 UTC
From: allenmccabe at gmail dot com Assigned:
Status: Not a bug Package: *General Issues
PHP Version: Irrelevant OS:
Private report: No CVE-ID: None
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes.
If you forgot your password, you can retrieve your password here.
Password:
Status:
Package:
Bug Type:
Summary:
From: allenmccabe at gmail dot com
New email:
PHP Version: OS:

 

 [2012-08-05 17:43 UTC] allenmccabe at gmail dot com
Description:
------------
---
From manual page: http://www.php.net/mysqli-result.fetch-object#refsect1-mysqli-
result.fetch-object-examples
---

In Example #1 Object oriented style:

After the while loop prints the object properties, the result is supposed to be 
freed:

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

But the close method is called instead (and called again immediately after).


Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2012-09-08 16:46 UTC] frozenfire@php.net
-Status: Open +Status: Not a bug
 [2012-09-08 16:46 UTC] frozenfire@php.net
http://php.net/manual/en/mysqli-result.free.php

mysqli_result::close is valid syntax for freeing a result. close and free are 
aliases.
 
PHP Copyright © 2001-2026 The PHP Group
All rights reserved.
Last updated: Wed Oct 07 12:00:02 2026 UTC