php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Doc Bug #71392 Incosistent recommendations whether to use mysqli_free_result()
Submitted: 2016-01-16 19:47 UTC Modified: 2016-12-31 18:44 UTC
From: marcgala at hotmail dot com Assigned:
Status: Open Package: MySQLi related
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: marcgala at hotmail dot com
New email:
PHP Version: OS:

 

 [2016-01-16 19:47 UTC] marcgala at hotmail dot com
Description:
------------
http://php.net/manual/en/mysqli-result.free.php explicitly claims that:
"You should always free your result with mysqli_free_result(), when your result object is not needed anymore."
However, both examples at http://php.net/manual/en/mysqli-stmt.get-result.php use mysqli_result and do never call any variant of mysqli_free_result().
This is inconsistent.


Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2016-12-31 18:44 UTC] cmb@php.net
-Package: Documentation problem +Package: MySQLi related
 
PHP Copyright © 2001-2018 The PHP Group
All rights reserved.
Last updated: Tue Dec 18 18:01:27 2018 UTC