PHP 4.0 Bug #8607 Updated: function strpos() can't return -1 while can't find target (string)
| From: | sniper@php.net | Date: | Tue, 09 Jan 2001 11:16:39 +0000 |
| Subject: | PHP 4.0 Bug #8607 Updated: function strpos() can't return -1 while can't find target (string) | ||
| Groups: | php.dev | ||
| Request: | Send a blank email to php-dev+get-43538@lists.php.net to get a copy of this message | ||
ID: 8607
Updated by: sniper
Reported By: znsoft@sy163.net
Old-Status: Closed
Status: Bogus
Bug Type: Unknown/Other Function
Assigned To:
Comments:
Not enough info for bug report.
Previous Comments:
---------------------------------------------------------------------------
[2001-01-09 05:37:53] rasmus@php.net
This report makes very little sense, but I think you are asking for strpos() to return -1 instead of
false on a non-match condition. That isn't going to happen. To be consistent it has to return
false on a failure. Use the === operator with the strpos() function to accurately distinguish
between a 0 and a false.
---------------------------------------------------------------------------
[2001-01-09 00:15:41] znsoft@sy163.net
---------------------------------------------------------------------------
Full Bug description available at: http://bugs.php.net/?id=8607