Doc #55452 [Opn->Csd]: Confusing description for mb_strcut()

From: Date: Thu, 25 Aug 2011 20:22:42 +0000
Subject: Doc #55452 [Opn->Csd]: Confusing description for mb_strcut()
References: 1  Groups: php.doc.bugs 
Request: Send a blank email to doc-bugs+get-7060@lists.php.net to get a copy of this message
Edit report at https://bugs.php.net/bug.php?id=55452&edit=1 ID: 55452 Updated by: nikic@php.net Reported by: daniel dot rhodes at warpasylum dot co dot uk Summary: Confusing description for mb_strcut() -Status: Open +Status: Closed Type: Documentation Problem Package: Documentation problem PHP Version: Irrelevant -Assigned To: +Assigned To: nikic Block user comment: N Private report: N New Comment: This bug has been fixed in the documentation's XML sources. Since the online and downloadable versions of the documentation need some time to get updated, we would like to ask you to be a bit patient. Thank you for the report, and for helping us make our documentation better. I changed the description of mb_strcut and the paramters of both mb_substr and mb_strcut to make the difference more clear. Previous Comments: ------------------------------------------------------------------------ [2011-08-25 20:20:49] nikic@php.net Automatic comment from SVN on behalf of nikic Revision: http://svn.php.net/viewvc/?view=revision&revision=315516 Log: Fix Doc Bug #55452: Confusing description for mb_strcut() ------------------------------------------------------------------------ [2011-08-18 16:18:04] daniel dot rhodes at warpasylum dot co dot uk Description: ------------ --- From manual page: http://www.php.net/function.mb-strcut%23Description --- "mb_strcut() performs equivalent operation as mb_substr() with different method. If start position is multi-byte character's second byte or larger, it starts from first byte of multi-byte character." kind of implies that mb_substr() *also* counts using bytes and is somehow broken. Both of which aren't true. Could we perhaps in the "Parameters" box for mb_strcut() state that $start and $length are counted in BYTES ? Could we perhaps in the "Parameters" box for mb_substr() state that $start and $length are counted in CHARACTERS ? I see much confusion in this area in the User Contributed Notes too... ------------------------------------------------------------------------ -- Edit this bug report at https://bugs.php.net/bug.php?id=55452&edit=1

« previous php.doc.bugs (#7060) next »