php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Doc Bug #38281 Shouldn't example for mysqli_query be $result->free() and not $result->close()?
Submitted: 2006-08-01 10:44 UTC Modified: 2006-09-05 18:41 UTC
From: seth at psydpu dot adsl dot dk Assigned:
Status: Not a bug Package: Documentation problem
PHP Version: Irrelevant OS: linux
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: seth at psydpu dot adsl dot dk
New email:
PHP Version: OS:

 

 [2006-08-01 10:44 UTC] seth at psydpu dot adsl dot dk
Description:
------------
http://uk.php.net/manual/en/function.mysqli-query.php

Under: 

Example 1.Object oriented style

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

Shouldn't this be:

    $result->free();

NB: Similar to Bug #35055: Error in mysqli_fetch_object() 
example


Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2006-09-05 16:38 UTC] bjori@php.net
reclassified as docu problem
 [2006-09-05 18:41 UTC] colder@php.net
"Object oriented style (all methods are equivalent):
class mysqli_result {

void free ( void )

void close ( void )

void free_result ( void )

}"
 
PHP Copyright © 2001-2025 The PHP Group
All rights reserved.
Last updated: Wed Nov 19 19:00:01 2025 UTC