Bug #15097: sunstr_count
| From: | webmaster at devchina dot com | Date: | Fri, 18 Jan 2002 11:50:53 +0000 |
| Subject: | Bug #15097: sunstr_count | ||
| Groups: | php.dev | ||
| Request: | Send a blank email to php-dev+get-77423@lists.php.net to get a copy of this message | ||
From: webmaster@devchina.com
Operating system: win2000
PHP version: 4.1.1
PHP Bug Type: Strings related
Bug description: sunstr_count
View my code:
$str1="D¨D¨D";
$str2="D";
print substr_count($str1,$str2);
return 3,right result is 1
the string "¨D" in Gb2312,is Chinese.
Used english is right,I don't konw where the problem in it.
--
Edit bug report at: http://bugs.php.net/?id=15097&edit=1