Doc #62754 [Opn->Nab]: Typo/wrong method call

From: Date: Sat, 08 Sep 2012 16:46:23 +0000
Subject: Doc #62754 [Opn->Nab]: Typo/wrong method call
References: 1  Groups: php.doc.bugs 
Request: Send a blank email to doc-bugs+get-8834@lists.php.net to get a copy of this message
Edit report at https://bugs.php.net/bug.php?id=62754&edit=1 ID: 62754 Updated by: frozenfire@php.net Reported by: allenmccabe at gmail dot com Summary: Typo/wrong method call -Status: Open +Status: Not a bug Type: Documentation Problem Package: *General Issues PHP Version: Irrelevant Block user comment: N Private report: N New Comment: http://php.net/manual/en/mysqli-result.free.php mysqli_result::close is valid syntax for freeing a result. close and free are aliases. Previous Comments: ------------------------------------------------------------------------ [2012-08-05 17:43:44] 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). ------------------------------------------------------------------------ -- Edit this bug report at https://bugs.php.net/bug.php?id=62754&edit=1

« previous php.doc.bugs (#8834) next »