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
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes.
If you forgot your password, you can retrieve your password here.
Password:
Status:
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

Pull Requests

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-2026 The PHP Group
All rights reserved.
Last updated: Tue Oct 06 16:00:01 2026 UTC