Doc #63565 [Opn->Csd]: Document bug about mb_stristr

From: Date: Sat, 24 Nov 2012 19:40:25 +0000
Subject: Doc #63565 [Opn->Csd]: Document bug about mb_stristr
References: 1  Groups: php.doc.bugs 
Request: Send a blank email to doc-bugs+get-9198@lists.php.net to get a copy of this message
Edit report at https://bugs.php.net/bug.php?id=63565&edit=1 ID: 63565 Updated by: reeze@php.net Reported by: daijie@php.net Summary: Document bug about mb_stristr -Status: Open +Status: Closed Type: Documentation Problem Package: Documentation problem Operating System: any PHP Version: 5.4.8 -Assigned To: +Assigned To: reeze 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. Previous Comments: ------------------------------------------------------------------------ [2012-11-24 19:40:10] reeze@php.net Automatic comment from SVN on behalf of reeze Revision: http://svn.php.net/viewvc/?view=revision&amp;revision=328489 Log: Fixed doc bug #63565 Patch by daijie ------------------------------------------------------------------------ [2012-11-20 09:21:19] daijie@php.net Description: ------------ I found mb_stristr has a bug in before_needle's description,When try to translate mb_stristr to Chinese. Actually, if set "before_needle" to FALSE,returned string including needle,otherwise excluding needle,but the doc is the reverse. Here is the patch for this bug. Test script: --------------- <?php $haystack = 'abcdefg'; $needle = 'cd'; echo mb_strstr($haystack,$needle,true),"\n"; echo mb_strstr($haystack,$needle,false),"\n"; echo mb_stristr($haystack,$needle,true),"\n"; echo mb_stristr($haystack,$needle,false),"\n"; ------------------------------------------------------------------------ -- Edit this bug report at https://bugs.php.net/bug.php?id=63565&edit=1

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