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
 [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

Pull Requests

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: Wed Oct 16 07:01:27 2024 UTC