Doc #60344 [NEW]: Wrong reference to mb_regex_encoding()
| From: | M8R-kilsyf at mailinator dot com | Date: | Mon, 21 Nov 2011 02:24:33 +0000 |
| Subject: | Doc #60344 [NEW]: Wrong reference to mb_regex_encoding() | ||
| Groups: | php.doc.bugs | ||
| Request: | Send a blank email to doc-bugs+get-7452@lists.php.net to get a copy of this message | ||
From:
Operating system: Irrelevant
PHP version: Irrelevant
Package: Documentation problem
Bug Type: Documentation Problem
Bug description:Wrong reference to mb_regex_encoding()
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 bug report at https://bugs.php.net/bug.php?id=60344&edit=1
--
Try a snapshot (PHP 5.4): https://bugs.php.net/fix.php?id=60344&r=trysnapshot54
Try a snapshot (PHP 5.3): https://bugs.php.net/fix.php?id=60344&r=trysnapshot53
Try a snapshot (trunk): https://bugs.php.net/fix.php?id=60344&r=trysnapshottrunk
Fixed in SVN: https://bugs.php.net/fix.php?id=60344&r=fixed
Fixed in SVN and need be documented: https://bugs.php.net/fix.php?id=60344&r=needdocs
Fixed in release: https://bugs.php.net/fix.php?id=60344&r=alreadyfixed
Need backtrace: https://bugs.php.net/fix.php?id=60344&r=needtrace
Need Reproduce Script: https://bugs.php.net/fix.php?id=60344&r=needscript
Try newer version: https://bugs.php.net/fix.php?id=60344&r=oldversion
Not developer issue: https://bugs.php.net/fix.php?id=60344&r=support
Expected behavior: https://bugs.php.net/fix.php?id=60344&r=notwrong
Not enough info: https://bugs.php.net/fix.php?id=60344&r=notenoughinfo
Submitted twice: https://bugs.php.net/fix.php?id=60344&r=submittedtwice
register_globals: https://bugs.php.net/fix.php?id=60344&r=globals
PHP 4 support discontinued: https://bugs.php.net/fix.php?id=60344&r=php4
Daylight Savings: https://bugs.php.net/fix.php?id=60344&r=dst
IIS Stability: https://bugs.php.net/fix.php?id=60344&r=isapi
Install GNU Sed: https://bugs.php.net/fix.php?id=60344&r=gnused
Floating point limitations: https://bugs.php.net/fix.php?id=60344&r=float
No Zend Extensions: https://bugs.php.net/fix.php?id=60344&r=nozend
MySQL Configuration Error: https://bugs.php.net/fix.php?id=60344&r=mysqlcfg