For Programmers: Free Programming Magazines  


Home > Archive > PHP Documentation > July 2006 > #38209 [Opn->WFx]: return value of ereg, strpor, etc. is mixed, not int









You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

 

Author #38209 [Opn->WFx]: return value of ereg, strpor, etc. is mixed, not int
nlopess@php.net

2006-07-25, 6:57 pm

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
Sponsored Links







Also available: Server administration forum archive | Web Design forum archive | Software forum archive | Hardware reviews archive

Copyright 2008 codecomments.com