Bug #1234: STRPOS substring not found / found on Position 0
| From: | tom dot weber at web dot lu | Date: | Sun, 14 Mar 1999 18:33:05 +0000 |
| Subject: | Bug #1234: STRPOS substring not found / found on Position 0 | ||
| Groups: | php.dev | ||
| Request: | Send a blank email to php-dev+get-4617@lists.php.net to get a copy of this message | ||
From: tom.weber@web.lu
Operating system: linux
PHP version: 3.0.6
PHP Bug Type: Misbehaving function
Bug description: STRPOS substring not found / found on Position 0
If You use the STRPOS and you don't find anything it will return FALSE
FALSE has the Value 0.
Now, If You are looking for a sub-string and it is located on the beginning
of the String, it will return 0.
You are not able anymore to distringuish if it is in the string at pos 0
or not.
--
PHP Development Mailing List http://www.php.net/
To unsubscribe send an empty message to php-dev-unsubscribe@lists.php.net
For help: php-dev-help@lists.php.net