php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Doc Bug #50107 return value should note FALSE
Submitted: 2009-11-06 22:14 UTC Modified: 2009-11-09 09:57 UTC
From: alex dot schuch at gmx dot de Assigned:
Status: Closed Package: Documentation problem
PHP Version: Irrelevant OS: GNU/Linux
Private report: No CVE-ID: None
 [2009-11-06 22:14 UTC] alex dot schuch at gmx dot de
Description:
------------
A quick look over the "return value" box suggests that this function always returns a string. This is not the case as mentioned in the "start" parameter box.

Give a hint in the "return value" box about this behaviour.

Reproduce code:
---------------
---
From manual page: function.substr#Return Values
---
var_dump(substr('a', 1));

Expected result:
----------------
Expected description:
Returns the extracted part of string or FALSE in case of an error.

Actual result:
--------------
-/-

Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2009-11-09 09:57 UTC] svn@php.net
Automatic comment from SVN on behalf of rquadling
Revision: http://svn.php.net/viewvc/?view=revision&revision=290408
Log: Return false on failure. Fix bug#50107
 [2009-11-09 09:57 UTC] rquadling@php.net
This bug has been fixed in the documentation's XML sources. Since the
online and downloadable versions of the documentation need some time
to get updated, we would like to ask you to be a bit patient.

Thank you for the report, and for helping us make our documentation better.


 
PHP Copyright © 2001-2026 The PHP Group
All rights reserved.
Last updated: Tue Jun 16 07:00:01 2026 UTC