Bug #71382 [Opn->Csd]: Lack of information about returned values for mysqli_stmt::get_result

From: Date: Mon, 18 Jan 2016 21:40:28 +0000
Subject: Bug #71382 [Opn->Csd]: Lack of information about returned values for mysqli_stmt::get_result
References: 1  Groups: php.doc.bugs 
Request: Send a blank email to doc-bugs+get-13123@lists.php.net to get a copy of this message
Edit report at https://bugs.php.net/bug.php?id=71382&edit=1 ID: 71382 Updated by: tpunt@php.net Reported by: jan dot kahoun at heureka dot cz Summary: Lack of information about returned values for mysqli_stmt::get_result -Status: Open +Status: Closed Type: Bug Package: Documentation problem PHP Version: Irrelevant -Assigned To: +Assigned To: tpunt Block user comment: N Private report: N Previous Comments: ------------------------------------------------------------------------ [2016-01-18 21:37:44] 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-15 17:04:18] 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. ------------------------------------------------------------------------ -- Edit this bug report at https://bugs.php.net/bug.php?id=71382&edit=1

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