Bug #71382 [NEW]: Lack of information about returned values for mysqli_stmt::get_result

From: Date: Fri, 15 Jan 2016 17:04:22 +0000
Subject: Bug #71382 [NEW]: Lack of information about returned values for mysqli_stmt::get_result
Groups: php.doc.bugs 
Request: Send a blank email to doc-bugs+get-13114@lists.php.net to get a copy of this message
From: jan dot kahoun at heureka dot cz Operating system: PHP version: Irrelevant Package: Documentation problem Bug Type: Bug Bug description:Lack of information about returned values for mysqli_stmt::get_result 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 bug report at https://bugs.php.net/bug.php?id=71382&edit=1 -- Try a snapshot (PHP 5.4): https://bugs.php.net/fix.php?id=71382&r=trysnapshot54 Try a snapshot (PHP 5.5): https://bugs.php.net/fix.php?id=71382&r=trysnapshot55 Try a snapshot (trunk): https://bugs.php.net/fix.php?id=71382&r=trysnapshottrunk Fixed in SVN: https://bugs.php.net/fix.php?id=71382&r=fixed Fixed in release: https://bugs.php.net/fix.php?id=71382&r=alreadyfixed Need backtrace: https://bugs.php.net/fix.php?id=71382&r=needtrace Need Reproduce Script: https://bugs.php.net/fix.php?id=71382&r=needscript Try newer version: https://bugs.php.net/fix.php?id=71382&r=oldversion Not developer issue: https://bugs.php.net/fix.php?id=71382&r=support Expected behavior: https://bugs.php.net/fix.php?id=71382&r=notwrong Not enough info: https://bugs.php.net/fix.php?id=71382&r=notenoughinfo Submitted twice: https://bugs.php.net/fix.php?id=71382&r=submittedtwice register_globals: https://bugs.php.net/fix.php?id=71382&r=globals PHP 4 support discontinued: https://bugs.php.net/fix.php?id=71382&r=php4 Daylight Savings: https://bugs.php.net/fix.php?id=71382&r=dst IIS Stability: https://bugs.php.net/fix.php?id=71382&r=isapi Install GNU Sed: https://bugs.php.net/fix.php?id=71382&r=gnused Floating point limitations: https://bugs.php.net/fix.php?id=71382&r=float No Zend Extensions: https://bugs.php.net/fix.php?id=71382&r=nozend MySQL Configuration Error: https://bugs.php.net/fix.php?id=71382&r=mysqlcfg

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