Doc #67613 [Opn->Csd]: Inconsistency in the documentation
| From: | aharvey@php.net | Date: | Wed, 25 Mar 2015 20:25:58 +0000 |
| Subject: | Doc #67613 [Opn->Csd]: Inconsistency in the documentation | ||
| References: | 1 | Groups: | php.doc.bugs |
| Request: | Send a blank email to doc-bugs+get-12046@lists.php.net to get a copy of this message | ||
Edit report at https://bugs.php.net/bug.php?id=67613&edit=1
ID: 67613
Updated by: aharvey@php.net
Reported by: zuires at gmail dot com
Summary: Inconsistency in the documentation
-Status: Open
+Status: Closed
Type: Documentation Problem
-Package: Strings related
+Package: Documentation problem
Operating System: 5
PHP Version: Irrelevant
-Assigned To:
+Assigned To: aharvey
Block user comment: N
Private report: N
New Comment:
Applied the second version of the patch (which changes stripos(), rather than strpos()), after
discussion on IRC.
Previous Comments:
------------------------------------------------------------------------
[2015-03-25 20:24:01] aharvey@php.net
Automatic comment from SVN on behalf of aharvey
Revision: http://svn.php.net/viewvc/?view=revision&revision=336195
Log: Document stripos() as returning mixed, since it does.
Fixes doc bug #67613 (Inconsistency in the documentation); patch by Patrick
Schwisow.
------------------------------------------------------------------------
[2014-08-22 22:17:30] james at notjam dot es
According to the svn revision that changed that in stripos:
> False doesn't cause mixed (howto/working)
------------------------------------------------------------------------
[2014-07-14 00:22:19] zuires at gmail dot com
Description:
------------
---
From manual page: http://www.php.net/function.stripos
---
Stripos returns eiter an integer or boolean, just like strpos. While strpos claims to return
"mixed," stripos claims to return an integer. It is a little inconsistency which should be
perhaps corrected so that same return values both have an equivalent return type in the
documentation.
Test script:
---------------
mixed strpos ( string $haystack , mixed $needle [, int $offset = 0 ] )
------------------------------------------------------------------------
--
Edit this bug report at https://bugs.php.net/bug.php?id=67613&edit=1