Doc #65262 [Opn->Csd]: Return type should be mixed

From: Date: Mon, 19 Aug 2013 05:44:11 +0000
Subject: Doc #65262 [Opn->Csd]: Return type should be mixed
References: 1  Groups: php.doc.bugs 
Request: Send a blank email to doc-bugs+get-10180@lists.php.net to get a copy of this message
Edit report at https://bugs.php.net/bug.php?id=65262&edit=1 ID: 65262 Updated by: krakjoe@php.net Reported by: michael at zedeler dot dk Summary: Return type should be mixed -Status: Open +Status: Closed Type: Documentation Problem Package: Documentation problem Operating System: N/A PHP Version: 5.5.0 -Assigned To: +Assigned To: krakjoe Block user comment: N Private report: N New Comment: This bug has been fixed in the documentation's XML sources. Since the online and downloadable versions of the documentation need some time to get updated, we would like to ask you to be a bit patient. Thank you for the report, and for helping us make our documentation better. Previous Comments: ------------------------------------------------------------------------ [2013-08-19 05:43:53] krakjoe@php.net Automatic comment from SVN on behalf of krakjoe Revision: http://svn.php.net/viewvc/?view=revision&revision=331154 Log: incorrect function signature #65262 ------------------------------------------------------------------------ [2013-07-15 07:43:54] michael at zedeler dot dk Description: ------------ --- From manual page: http://www.php.net/function.strpos#refsect1-function.strpos-description --- The signature is written as: int strpos ( string $haystack , mixed $needle [, int $offset = 0 ] ) This is wrong since strpos can return FALSE, so the signature should be: mixed strpos ( string $haystack , mixed $needle [, int $offset = 0 ] ) (Which I find silly, but alas, that is the way things are(tm).) Test script: --------------- N/A ------------------------------------------------------------------------ -- Edit this bug report at https://bugs.php.net/bug.php?id=65262&edit=1

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