php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #69146 substr docs issue
Submitted: 2015-02-28 13:26 UTC Modified: 2015-02-28 14:37 UTC
From: olafvdspek at gmail dot com Assigned: salathe (profile)
Status: Closed Package: Documentation problem
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: olafvdspek at gmail dot com
New email:
PHP Version: OS:

 

 [2015-02-28 13:26 UTC] olafvdspek at gmail dot com
Description:
------------
> If length is given and is 0, FALSE or NULL an empty string will be returned.

Is this missing an or?
Is one of the three returned at random?


Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2015-02-28 14:37 UTC] salathe@php.net
-Status: Open +Status: Closed -Assigned To: +Assigned To: salathe
 [2015-02-28 14:37 UTC] salathe@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.

When 0, FALSE or NULL are given as the length parameter, the function will return an empty string.

I've added a comma between "NULL" and "an empty string" to make the sentence read correctly.

See http://svn.php.net/viewvc?view=revision&revision=336019
 
PHP Copyright © 2001-2026 The PHP Group
All rights reserved.
Last updated: Thu Oct 08 04:00:01 2026 UTC