php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #71382 Lack of information about returned values for mysqli_stmt::get_result
Submitted: 2016-01-15 17:04 UTC Modified: 2016-01-18 21:40 UTC
From: jan dot kahoun at heureka dot cz Assigned: tpunt (profile)
Status: Closed Package: Documentation problem
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: jan dot kahoun at heureka dot cz
New email:
PHP Version: OS:

 

 [2016-01-15 17:04 UTC] jan dot kahoun at heureka dot cz
Description:
------------
Hi,
in documentation here http://php.net/manual/en/mysqli-stmt.get-result.php is that method returns FALSE on failure. But this is not correct! This method is returning FALSE also for queries, which doesn't return values like INSERT, UPDATE, DELETE ...

There is also missing information how to check that mysqli_stmt::get_result() failed or not. Some example containing code like this would be helpful:

$stmt->execute();
$result = $stmt->get_result();
if ($stmt->errno) {
  // handle error here
}

I'm not the only one who is missing this information http://php.net/manual/en/mysqli-stmt.get-result.php#117718 

Expected result:
----------------
In documentation here http://php.net/manual/en/mysqli-stmt.get-result.php I see right information about returned values and example of code how can be checked if the mysqli_stmt::get_result() failed or not.


Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2016-01-18 21:37 UTC] tpunt@php.net
Automatic comment from SVN on behalf of tpunt
Revision: http://svn.php.net/viewvc/?view=revision&revision=338523
Log: Resolve doc bug #71382
 [2016-01-18 21:40 UTC] tpunt@php.net
-Status: Open +Status: Closed -Assigned To: +Assigned To: tpunt
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Thu May 02 18:01:32 2024 UTC