Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use mb_substitute_character inset of ini_set #100

Merged
merged 1 commit into from
Mar 19, 2016

Conversation

mundschenk-at
Copy link
Contributor

On shared hosts, ini_set is often disabled by the administrator. The mbstring extension provides an accessor function mb_substitute_character, so we should use that instead.

@technosophos
Copy link
Member

If the mb extension is disabled, will this cause a fatal error?

@mundschenk-at
Copy link
Contributor Author

No, because this code path is only executed when mbstring is enabled. The whole block is wrapped in if (function_exists('mb_convert_encoding')) {.

@technosophos
Copy link
Member

In that case, LGTM. I'll merge it.

technosophos added a commit that referenced this pull request Mar 19, 2016
Use mb_substitute_character inset of ini_set
@technosophos technosophos merged commit 26edd5b into Masterminds:2.x Mar 19, 2016
@mundschenk-at mundschenk-at deleted the ini_set_removal branch March 19, 2016 17:44
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants