Doc #61085 [Opn->Csd]: Description of strstr
| From: | gooh@php.net | Date: | Tue, 14 Feb 2012 18:37:18 +0000 |
| Subject: | Doc #61085 [Opn->Csd]: Description of strstr | ||
| References: | 1 | Groups: | php.doc.bugs |
| Request: | Send a blank email to doc-bugs+get-7944@lists.php.net to get a copy of this message | ||
Edit report at https://bugs.php.net/bug.php?id=61085&edit=1
ID: 61085
Updated by: gooh@php.net
Reported by: harald at ibfriedrich dot com
Summary: Description of strstr
-Status: Open
+Status: Closed
Type: Documentation Problem
Package: Documentation problem
PHP Version: Irrelevant
-Assigned To:
+Assigned To: gooh
Block user comment: N
Private report: N
New Comment:
This bug has been fixed in SVN.
Snapshots of the sources are packaged every three hours; this change
will be in the next snapshot. You can grab the snapshot at
http://snaps.php.net/.
For Windows:
http://windows.php.net/snapshots/
Thank you for the report, and for helping us make PHP better.
Previous Comments:
------------------------------------------------------------------------
[2012-02-14 18:35:04] gooh@php.net
Automatic comment from SVN on behalf of gooh
Revision: http://svn.php.net/viewvc/?view=revision&revision=323218
Log: clarified that the function will return the haystack including the needle, related to #61085
------------------------------------------------------------------------
[2012-02-14 18:19:05] gooh@php.net
Automatic comment from SVN on behalf of gooh
Revision: http://svn.php.net/viewvc/?view=revision&revision=323216
Log: clarified that the function will return the haystack including the needle, fixes #61085
------------------------------------------------------------------------
[2012-02-14 16:21:43] harald at ibfriedrich dot com
Description:
------------
---
From manual page: http://www.php.net/function.strstr#refsect1-function.strstr-description
---
The sentence
"Returns part of haystack string from the first occurrence of needle to the end of
haystack."
does not mention, that needle is included in the resulting string. The normal reader of the above
description expects that the result starts after needle. Better would be:
"Returns part of haystack string from the first _character_ of needle to the end of
haystack."
Best regards, Harald Friedrich
------------------------------------------------------------------------
--
Edit this bug report at https://bugs.php.net/bug.php?id=61085&edit=1