Bug #15691 Updated: Returns from strpos()
| From: | derick@php.net | Date: | Sat, 23 Feb 2002 20:23:03 +0000 |
| Subject: | Bug #15691 Updated: Returns from strpos() | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-874@lists.php.net to get a copy of this message | ||
ID: 15691
Updated by: derick@php.net
Reported By: mjohnwood@hotmail.com
-Status: Open
+Status: Closed
Bug Type: Feature/Change Request
Operating System: Any
PHP Version: 4.1.1
New Comment:
Changing this behavior will break way too many scripts, so it's
absolutely not a good idea to change this behavior.
Derick
Previous Comments:
------------------------------------------------------------------------
[2002-02-23 15:12:51] mjohnwood@hotmail.com
It would be boundlessly helpful if someone could make strpos(), etc.
return a -1 instead of FALSE like C++/Java. Returning a FALSE
(something that casts to an integer of 0) doesn't seem to make much
sense. Even if it can be worked around with strpos() === FALSE, it
would be a lot easier without having to rely upon it. Any reason why
it should be using FALSE instead of -1?
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=15691&edit=1