php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Doc Bug #65021 Return values of a function
Submitted: 2013-06-12 23:48 UTC Modified: 2013-06-24 23:05 UTC
From: dexter92 dot mg at gmail dot com Assigned: philip (profile)
Status: Closed Package: MySQLi related
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: dexter92 dot mg at gmail dot com
New email:
PHP Version: OS:

 

 [2013-06-12 23:48 UTC] dexter92 dot mg at gmail dot com
Description:
------------
---
From manual page: http://www.php.net/mysqli.more-results#refsect1-mysqli.more-results-returnvalues
---
"Returns TRUE on success or FALSE on failure".
I suppose that text is copied from other MySQLi functions?

I think it needs a clarification: the function, as stated in its description, indicates whether there are more result sets from a multi-query. So, it should return FALSE if there are no more results (and that is actually not a failure). It returns TRUE only when finding out there are more result sets.


Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2013-06-24 23:04 UTC] philip@php.net
Automatic comment from SVN on behalf of philip
Revision: http://svn.php.net/viewvc/?view=revision&revision=330633
Log: Clarified return value, as per PHP Bug #65021
 [2013-06-24 23:05 UTC] philip@php.net
-Status: Open +Status: Closed -Assigned To: +Assigned To: philip
 [2013-06-24 23:05 UTC] philip@php.net
This is fixed in SVN and php.net will be updated this upcoming Friday.

Thank you for the bug report!
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Fri May 03 08:01:29 2024 UTC