|  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Doc Bug #60700 Confusing function return type
Submitted: 2012-01-10 16:03 UTC Modified: 2012-01-11 02:47 UTC
From: adrian at foeder dot de Assigned:
Status: Not a bug Package: Documentation problem
PHP Version: Irrelevant OS:
Private report: No CVE-ID: None
 [2012-01-10 16:03 UTC] adrian at foeder dot de
From manual page:

The description says this function would return "int" only, while the Return Values section says it could return FALSE also.


Add a Patch

Pull Requests

Add a Pull Request


AllCommentsChangesGit/SVN commitsRelated reports
 [2012-01-11 02:47 UTC]
-Status: Open +Status: Bogus
 [2012-01-11 02:47 UTC]
This isn't an error. It's standard to indicate the "working" return value in the 
function prototype, and indicate "or false on failure" in the return values 
PHP Copyright © 2001-2021 The PHP Group
All rights reserved.
Last updated: Fri May 07 17:01:23 2021 UTC