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
View Add Comment Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
You can add a comment by following this link or if you reported this bug, you can edit this bug over here.
(description)
Block user comment
Status: Assign to:
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

Add a Patch

Pull Requests

Add a Pull Request

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-2024 The PHP Group
All rights reserved.
Last updated: Thu May 02 02:01:28 2024 UTC