php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Doc Bug #53783 Meaning of mbstring "auto" encoding depends on mbstring.language
Submitted: 2011-01-19 03:21 UTC Modified: 2011-02-10 13:52 UTC
From: kentaro at ranvis dot com Assigned: vrana (profile)
Status: Closed Package: Documentation problem
PHP Version: Irrelevant OS:
Private report: No CVE-ID: None
 [2011-01-19 03:21 UTC] kentaro at ranvis dot com
Description:
------------
The following documents says that the "auto" encoding for
mbstring always expands to "ASCII, JIS, UTF-8, EUC-JP, SJIS".
But according to ext/mbstring/mbstring.c,
"auto" actually expands to php_mb_default_identify_list_*
which the current mbstring.language value corresponds to.
  doc-en/en/reference/mbstring/functions/mb-convert-encoding.xml
  doc-en/en/reference/mbstring/functions/mb-detect-encoding.xml
  doc-en/en/reference/mbstring/functions/mb-detect-order.xml
  doc-en/en/reference/mbstring/ini.xml

The correct behavior is only described in:
  doc-en/en/reference/mbstring/supported-encodings.xml
which says:
  If "auto" is set, it is expanded to
  the list of encodings defined per the NLS.
  For instance, if the NLS is set to Japanese,
  the value is assumed to be
  "ASCII,JIS,UTF-8,EUC-JP,SJIS".


Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2011-02-10 13:52 UTC] vrana@php.net
Automatic comment from SVN on behalf of vrana
Revision: http://svn.php.net/viewvc/?view=revision&revision=308187
Log: 'auto' depends on mbstring.language (doc bug #53783)
 [2011-02-10 13:52 UTC] vrana@php.net
-Status: Open +Status: Closed -Assigned To: +Assigned To: vrana
 [2011-02-10 13:52 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-2024 The PHP Group
All rights reserved.
Last updated: Fri Dec 27 01:01:28 2024 UTC