Doc #78417 [NEW]: Description of strpos

From: Date: Thu, 15 Aug 2019 14:16:15 +0000
Subject: Doc #78417 [NEW]: Description of strpos
Groups: php.doc.bugs 
Request: Send a blank email to doc-bugs+get-16883@lists.php.net to get a copy of this message
From: vlada at skrbek dot cz Operating system: PHP version: Irrelevant Package: Documentation problem Bug Type: Documentation Problem Bug description:Description of strpos Description: ------------ --- From manual page: https://php.net/function.strpos --- Hello It is just a mine oppinion but I think to the description of strpos should be added the return value BOOLEAN not only INT because the return value is either INT if the string is found or BOOLEAN if the string is not find. I like these documentations. Also note. When I search comparator == or === it is not found. Could you fix it? Best Regards Test script: --------------- It is just a mine oppinion but I think to the description of strpos should be added the return value BOOLEAN not only INT because the return value is either INT if the string is found or BOOLEAN if the string is not find. Now it looks like: strpos ( string $haystack , mixed $needle [, int $offset = 0 ] ) : int I think it should be something like: strpos ( string $haystack , mixed $needle [, int $offset = 0 ] ) : {int|boolena} Expected result: ---------------- strpos ( string $haystack , mixed $needle [, int $offset = 0 ] ) : {int|boolena} Actual result: -------------- strpos ( string $haystack , mixed $needle [, int $offset = 0 ] ) : int -- Edit bug report at https://bugs.php.net/bug.php?id=78417&edit=1 -- Fix committed: https://bugs.php.net/fix.php?id=78417&r=fixed Fixed in release: https://bugs.php.net/fix.php?id=78417&r=alreadyfixed Need backtrace: https://bugs.php.net/fix.php?id=78417&r=needtrace Need Reproduce Script: https://bugs.php.net/fix.php?id=78417&r=needscript Try newer version: https://bugs.php.net/fix.php?id=78417&r=oldversion Not developer issue: https://bugs.php.net/fix.php?id=78417&r=support Expected behavior: https://bugs.php.net/fix.php?id=78417&r=notwrong Not enough info: https://bugs.php.net/fix.php?id=78417&r=notenoughinfo Submitted twice: https://bugs.php.net/fix.php?id=78417&r=submittedtwice register_globals: https://bugs.php.net/fix.php?id=78417&r=globals PHP version support discontinued: https://bugs.php.net/fix.php?id=78417&r=phptooold Daylight Savings: https://bugs.php.net/fix.php?id=78417&r=dst IIS Stability: https://bugs.php.net/fix.php?id=78417&r=isapi Install GNU Sed: https://bugs.php.net/fix.php?id=78417&r=gnused Floating point limitations: https://bugs.php.net/fix.php?id=78417&r=float No Zend Extensions: https://bugs.php.net/fix.php?id=78417&r=nozend MySQL Configuration Error: https://bugs.php.net/fix.php?id=78417&r=mysqlcfg

« previous php.doc.bugs (#16883) next »