Doc #78142 [NEW]: wrong return type in docs
From: mail at marcus dot haase dot name
Operating system: Irrelevant
PHP version: Irrelevant
Package: *General Issues
Bug Type: Documentation Problem
Bug description:wrong return type in docs
Description:
------------
The return type for mb-strpos is declared as int, although it can be
either int of false, as is explained in the text of the documentation
later on. To somebody reading only the call-description but not the
textual description, this is misleading.
---
mb_strpos ( string $haystack , string $needle [, int $offset = 0 [,
string $encoding = mb_internal_encoding() ]] ) : int
---
---
From manual page: https://php.net/function.mb-strpos
---
Test script:
---------------
Irrelevant
Expected result:
----------------
Remove the PHP7.1 return type
--
Edit bug report at https://bugs.php.net/bug.php?id=78142&edit=1
--
Try a snapshot (PHP 5.4): https://bugs.php.net/fix.php?id=78142&r=trysnapshot54
Try a snapshot (PHP 5.5): https://bugs.php.net/fix.php?id=78142&r=trysnapshot55
Try a snapshot (trunk): https://bugs.php.net/fix.php?id=78142&r=trysnapshottrunk
Fixed in SVN: https://bugs.php.net/fix.php?id=78142&r=fixed
Fixed in release: https://bugs.php.net/fix.php?id=78142&r=alreadyfixed
Need backtrace: https://bugs.php.net/fix.php?id=78142&r=needtrace
Need Reproduce Script: https://bugs.php.net/fix.php?id=78142&r=needscript
Try newer version: https://bugs.php.net/fix.php?id=78142&r=oldversion
Not developer issue: https://bugs.php.net/fix.php?id=78142&r=support
Expected behavior: https://bugs.php.net/fix.php?id=78142&r=notwrong
Not enough info: https://bugs.php.net/fix.php?id=78142&r=notenoughinfo
Submitted twice: https://bugs.php.net/fix.php?id=78142&r=submittedtwice
register_globals: https://bugs.php.net/fix.php?id=78142&r=globals
PHP 4 support discontinued: https://bugs.php.net/fix.php?id=78142&r=php4
Daylight Savings: https://bugs.php.net/fix.php?id=78142&r=dst
IIS Stability: https://bugs.php.net/fix.php?id=78142&r=isapi
Install GNU Sed: https://bugs.php.net/fix.php?id=78142&r=gnused
Floating point limitations: https://bugs.php.net/fix.php?id=78142&r=float
No Zend Extensions: https://bugs.php.net/fix.php?id=78142&r=nozend
MySQL Configuration Error: https://bugs.php.net/fix.php?id=78142&r=mysqlcfg
Thread (6 messages)
- mail at marcus dot haase dot name