php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Doc Bug #36565 mb_strpos: improper explanation
Submitted: 2006-03-01 04:36 UTC Modified: 2006-03-01 05:35 UTC
From: takagi@php.net Assigned:
Status: Closed Package: Documentation problem
PHP Version: Irrelevant OS: Irrelevant
Private report: No CVE-ID: None
 [2006-03-01 04:36 UTC] takagi@php.net
Description:
------------
Please take a look at the following url.
http://www.php.net/manual/en/function.mb-strpos.php

> mb_strrpos()  accepts string for needle where strrpos()  accepts only character.

This sentence describes mb_str*r*pos and str*r*pos, not mb_strpos.
I think it is improper to explain this here.


Expected result:
----------------
diff -u -r1.3 mb-strpos.xml
--- en/reference/mbstring/functions/mb-strpos.xml       22 Apr 2005 15:39:27 -0000      1.3
+++ en/reference/mbstring/functions/mb-strpos.xml       1 Mar 2006 03:34:39 -0000
@@ -33,10 +33,7 @@
     </para>
     <para>
      If <parameter>encoding</parameter> is omitted, internal
-     character encoding is used. <function>mb_strrpos</function>
-     accepts <literal>string</literal> for
-     <parameter>needle</parameter> where <function>strrpos</function>
-     accepts only character.
+     character encoding is used.
     </para>
     <para>
      <parameter>offset</parameter> is search offset. If it is not



Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2006-03-01 05:35 UTC] vrana@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.
 
PHP Copyright © 2001-2025 The PHP Group
All rights reserved.
Last updated: Mon Jul 14 03:01:31 2025 UTC