Doc #60344 [Opn->Csd]: Wrong reference to mb_regex_encoding()

From: Date: Wed, 21 Dec 2011 15:16:22 +0000
Subject: Doc #60344 [Opn->Csd]: Wrong reference to mb_regex_encoding()
References: 1  Groups: php.doc.bugs 
Request: Send a blank email to doc-bugs+get-7694@lists.php.net to get a copy of this message
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&amp;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

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