Doc #67613 [NEW]: Inconsistency in the documentation
| From: | zuires at gmail dot com | Date: | Mon, 14 Jul 2014 00:22:19 +0000 |
| Subject: | Doc #67613 [NEW]: Inconsistency in the documentation | ||
| Groups: | php.doc.bugs | ||
| Request: | Send a blank email to doc-bugs+get-11369@lists.php.net to get a copy of this message | ||
From: zuires at gmail dot com
Operating system: 5
PHP version: Irrelevant
Package: Strings related
Bug Type: Documentation Problem
Bug description:Inconsistency in the documentation
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 bug report at https://bugs.php.net/bug.php?id=67613&edit=1
--