[prev in list] [next in list] [prev in thread] [next in thread]
List: php-doc-bugs
Subject: [DOC-BUGS] Doc #60344 [Opn->Csd]: Wrong reference to mb_regex_encoding()
From: bjori () php ! net
Date: 2011-12-21 15:16:22
Message-ID: E1RdNu2-0005vf-Cj () sgrv2 ! php ! net
[Download RAW message or body]
Edit report at https://bugs.php.net/bug.php?id=60344&edit=1
ID: 60344
Updated by: bjori@php.net
Reported by: M8R-kilsyf at mailinator dot com
Summary: Wrong reference to mb_regex_encoding()
-Status: Open
+Status: Closed
Type: Documentation Problem
Package: Documentation problem
Operating System: Irrelevant
PHP Version: Irrelevant
-Assigned To:
+Assigned To: bjori
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.
Nice catch
Previous Comments:
------------------------------------------------------------------------
[2011-12-21 15:16:17] bjori@php.net
Automatic comment from SVN on behalf of bjori
Revision: http://svn.php.net/viewvc/?view=revision&revision=321296
Log: Remove irrelevant note mentioning regex charset, fixes bug#60344
------------------------------------------------------------------------
[2011-11-21 02:24:32] M8R-kilsyf at mailinator dot com
Description:
------------
==========================================
I believe there are two wrong references to mb_regex_encoding() on the following two \
pages:
http://www.php.net/function.mb-internal-encoding#refsect1-function.mb-internal-encoding-notes
http://www.php.net/function.mb-strrpos#refsect1-function.mb-strrpos-notes
These pages aren't related to regular expressions - and the source code and a test \
indicates that their internal character encoding is given by the encoding of \
mb_internal_encoding(), instead of mb_regex_encoding().
Thank you very much for your help! :)
==========================================
<?
mb_internal_encoding("UTF-16");
echo mb_strrpos("\x00\x74\x00\x65\x00\x73\x00\x74","\x00\x73"); // 2
mb_internal_encoding("UTF-8");
echo mb_strrpos("\x00\x74\x00\x65\x00\x73\x00\x74","\x00\x73"); // 4
mb_regex_encoding("UTF-16"); // does not seem to change anything
echo mb_strrpos("\x00\x74\x00\x65\x00\x73\x00\x74","\x00\x73"); // 4
mb_regex_encoding("UTF-8"); // does not seem to change anything
echo mb_strrpos("\x00\x74\x00\x65\x00\x73\x00\x74","\x00\x73"); // 4
?>
==========================================
------------------------------------------------------------------------
--
Edit this bug report at https://bugs.php.net/bug.php?id=60344&edit=1
--
PHP Documentation Bugs Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic