#38209 [Opn->WFx]: return value of ereg, strpor, etc. is mixed, not int
| From: | nlopess@php.net | Date: | Tue, 25 Jul 2006 19:50:49 +0000 |
| Subject: | #38209 [Opn->WFx]: return value of ereg, strpor, etc. is mixed, not int | ||
| References: | 1 | Groups: | php.doc |
| Request: | Send a blank email to phpdoc+get-969373589@lists.php.net to get a copy of this message | ||
ID: 38209
Updated by: nlopess@php.net
Reported By: thuejk at gmail dot com
-Status: Open
+Status: Wont fix
Bug Type: Documentation problem
Operating System: all
PHP Version: Irrelevant
New Comment:
We have already discussed this one, and although I agree with you, we
voted for not changing it.
Previous Comments:
------------------------------------------------------------------------
[2006-07-25 17:42:47] thuejk at gmail dot com
Description:
------------
The prototype for strpos() at
http://dk2.php.net/manual/en/function.strpos.php
is
int strpos ( string haystack, mixed needle [, int offset] )
however, as it says below
If needle is not found, strpos() will return boolean FALSE.
So the return value should be "mixed". Same for the functions mentioned
in "see also" for strpos() and ereg().
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=38209&edit=1