Skip to content
This repository has been archived by the owner on Jan 8, 2021. It is now read-only.

[ini_set] warning in prod #65

Closed
nabbar opened this issue Jun 17, 2017 · 0 comments
Closed

[ini_set] warning in prod #65

nabbar opened this issue Jun 17, 2017 · 0 comments

Comments

@nabbar
Copy link

nabbar commented Jun 17, 2017

Hi,

In many production environnement ini_set are forbidden for security reasons.

Could you put all ini_set into a if statement and/or throw error :
https://github.com/tchwork/utf8/blob/master/src/Patchwork/Utf8/Bootup.php#L52

            if (function_exists('mb_regex_encoding')) {
                mb_regex_encoding('UTF-8');
            }
            ini_set('mbstring.script_encoding', 'pass');
            if ('utf-8' !== strtolower(mb_internal_encoding())) {
                mb_internal_encoding('UTF-8');
            }

Thanks in advance

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants