php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Doc Bug #63565 Document bug about mb_stristr
Submitted: 2012-11-20 09:21 UTC Modified: 2012-11-24 19:40 UTC
From: daijie@php.net Assigned: reeze (profile)
Status: Closed Package: Documentation problem
PHP Version: 5.4.8 OS: any
Private report: No CVE-ID: None
 [2012-11-20 09:21 UTC] 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";


Patches

path-for-mb-stristr-doc-bug.patch (last revision 2012-11-20 09:22 UTC by ice dot shiny at gmail dot com)

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2012-11-24 19:40 UTC] 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-24 19:40 UTC] reeze@php.net
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.


 [2012-11-24 19:40 UTC] reeze@php.net
-Status: Open +Status: Closed -Assigned To: +Assigned To: reeze
 
PHP Copyright © 2001-2026 The PHP Group
All rights reserved.
Last updated: Wed Oct 07 19:00:01 2026 UTC