|  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Doc Bug #65158 mysql_num_rows() ambigious return value description
Submitted: 2013-06-28 12:46 UTC Modified: 2013-10-22 08:15 UTC
From: ddpm at liscovius dot de Assigned:
Status: Not a bug Package: Documentation problem
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.
Block user comment
Status: Assign to:
Bug Type:
From: ddpm at liscovius dot de
New email:
PHP Version: OS:


 [2013-06-28 12:46 UTC] ddpm at liscovius dot de
From manual page:

It is unclear what "failure" means in the description of this function.

If a query return 0 rows it is IMHO not a failure. It is a valuable information, that 0 entry match my query.

So I suggest reformulating this part and make clear what is given back if no row 
matched the query. 


Add a Patch

Pull Requests

Add a Pull Request


AllCommentsChangesGit/SVN commitsRelated reports
 [2013-10-22 08:15 UTC]
-Status: Open +Status: Not a bug
 [2013-10-22 08:15 UTC]
It should be obvious to anyone expecting int(0) that they should !== false the result of the call.

Changing the wording will not promote correct use of the function, because it would not provide different information, the same information using different words.
PHP Copyright © 2001-2021 The PHP Group
All rights reserved.
Last updated: Fri Apr 16 00:01:23 2021 UTC