|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2012-12-03 02:29 UTC] aharvey@php.net
[2012-12-03 02:29 UTC] aharvey@php.net
-Status: Open
+Status: Analyzed
[2012-12-03 02:36 UTC] kobrien at kiva dot org
[2012-12-03 02:47 UTC] aharvey@php.net
[2012-12-03 03:10 UTC] kobrien at kiva dot org
[2021-03-31 13:33 UTC] cmb@php.net
-Type: Bug
+Type: Documentation Problem
-Assigned To:
+Assigned To: cmb
[2021-03-31 13:33 UTC] cmb@php.net
[2021-03-31 13:35 UTC] git@php.net
[2021-03-31 13:35 UTC] git@php.net
-Status: Analyzed
+Status: Closed
[2021-04-01 01:31 UTC] git@php.net
[2021-04-15 21:36 UTC] git@php.net
|
|||||||||||||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Sun Oct 26 15:00:01 2025 UTC |
Description: ------------ The function str_word_count() does work properly on non-latin characters. It will return a value of zero. Whereas str_word_count() works properly on latin characters and returns the value for the number of words in a string. Test script: --------------- <?php print str_word_count("PHP function str_word_count does not properly handle non-latin characters") . "\n"; // returns 11 print str_word_count("Хабилло житель Яванского района. Ему 70 лет. Он женат. У него четверо детей. Хабилло филолог. Он более двадцати лет работает по профессии. Также Хабилло занимается виноградарством. У него имеется небольшой виноградник. Этим видом деятельности Хабилло занимается 15 лет."); // returns 0, but should return 37 Expected result: ---------------- The second instruction should return 37 Actual result: -------------- The second instruction returns 0