Doc #71392 [Opn->Csd]: Incosistent recommendations whether to use mysqli_free_result()
| From: | dharman@php.net | Date: | Sun, 13 Dec 2020 15:33:01 +0000 |
| Subject: | Doc #71392 [Opn->Csd]: Incosistent recommendations whether to use mysqli_free_result() | ||
| References: | 1 | Groups: | php.doc.bugs |
| Request: | Send a blank email to doc-bugs+get-18252@lists.php.net to get a copy of this message | ||
Edit report at https://bugs.php.net/bug.php?id=71392&edit=1
ID: 71392
Updated by: dharman@php.net
Reported by: marcgala at hotmail dot com
Summary: Incosistent recommendations whether to use
mysqli_free_result()
-Status: Open
+Status: Closed
Type: Documentation Problem
Package: MySQLi related
PHP Version: Irrelevant
-Assigned To:
+Assigned To: dharman
Block user comment: N
Private report: N
New Comment:
Thank you for your bug report. This issue has already been fixed
in the latest released version of PHP, which you can download at
http://www.php.net/downloads.php
The misleading note was removed. Thanks for pointing it out.
PR: https://github.com/php/doc-en/pull/240
Previous Comments:
------------------------------------------------------------------------
[2016-01-16 19:47:33] 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.
------------------------------------------------------------------------
--
Edit this bug report at https://bugs.php.net/bug.php?id=71392&edit=1