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

Add check for mbstring extension. #10

Merged
merged 1 commit into from
Jan 14, 2014
Merged

Conversation

Aaron3
Copy link
Contributor

@Aaron3 Aaron3 commented Jul 17, 2013

While there are try/catch blocks with fallbacks to non-mbstring functions, they don't catch the fatal errors caused when PHP doesn't load the mbstring extension.

The script now checks if the mbstring extension is loaded inside the try{}. If not, it will fallback to the non-mbstring function in the catch(e){}.

@jrfnl
Copy link
Contributor

jrfnl commented Jan 12, 2014

Just a thought: wouldn't be more useful to only test for this once in the constructor ?

DaveChild added a commit that referenced this pull request Jan 14, 2014
Add check for mbstring extension. (A little cleanup needed.)
@DaveChild DaveChild merged commit a167051 into DaveChild:master Jan 14, 2014
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.

None yet

3 participants