Doc #67613 [Com]: Inconsistency in the documentation

From: Date: Fri, 22 Aug 2014 22:17:31 +0000
Subject: Doc #67613 [Com]: Inconsistency in the documentation
References: 1  Groups: php.doc.bugs 
Request: Send a blank email to doc-bugs+get-11441@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 Comment by: james at notjam dot es Reported by: zuires at gmail dot com Summary: Inconsistency in the documentation Status: Open Type: Documentation Problem Package: Strings related Operating System: 5 PHP Version: Irrelevant Block user comment: N Private report: N New Comment: According to the svn revision that changed that in stripos: > False doesn't cause mixed (howto/working) Previous Comments: ------------------------------------------------------------------------ [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

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