php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Request #65785 mbstring.func_overload should be depreciated.
Submitted: 2013-09-29 13:12 UTC Modified: -
Votes:2
Avg. Score:5.0 ± 0.0
Reproduced:2 of 2 (100.0%)
Same Version:0 (0.0%)
Same OS:0 (0.0%)
From: sasezaki at gmail dot com Assigned:
Status: Open Package: mbstring related
PHP Version: Irrelevant OS: any
Private report: No CVE-ID:
Have you experienced this issue?
Rate the importance of this bug to you:

 [2013-09-29 13:12 UTC] sasezaki at gmail dot com
Description:
------------
func_overload ( http://www.php.net/manual/en/mbstring.overload.php )
should be depricated.

Nowadays, mbstring.func_overload is often set based on misunderstood. And it 
causes strlen() is not bytesize issue.

ref.
https://github.com/cakephp/cakephp/pull/283/files
https://github.com/symfony/symfony/blob/master/src/Symfony/Component/Yaml/Inline
.php#L50
http://zend-framework-community.634137.n4.nabble.com/Environment-amp-
StringUtils-td4559272.html#a4564914
https://github.com/reactphp/react/pull/27

This feature is like "register_globals".

Already, I contact to Japanese PHP Developers ML(*1), & mbstring maintainer - 
Rui Hirokawa agreed this feature should be depricated.
And He suggested that I must open bug issue report. 

*1 http://php-japan.10936.n7.nabble.com/PHP-dev-1528-mbstring-func-overload-
td10313.html

Test script:
---------------
php -d mbstring.func_overload=2 -r "var_dump((int)ini_get('mbstring.func_overload') & 2);

Expected result:
----------------
should be raised "PHP Deprecated: mbstring.func_overload is depricated, "  

Actual result:
--------------
NONE

Patches

Add a Patch

Pull Requests

Add a Pull Request

 
PHP Copyright © 2001-2015 The PHP Group
All rights reserved.
Last updated: Sun Apr 26 11:01:34 2015 UTC