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 Fallback for Systems without the MBString Extension #136

Open
dshanske opened this issue Nov 11, 2017 · 4 comments
Open

Add Fallback for Systems without the MBString Extension #136

dshanske opened this issue Nov 11, 2017 · 4 comments

Comments

@dshanske
Copy link
Member

https://github.com/indieweb/php-mf2/blob/4266673ca7883f55d9733204719feee95779df5f/Mf2/Parser.php#L96

We've had some issues with packages that depend on the parser running on sites where the hosting provider doesn't have the extension installed. Wondering if we could add a graceful failure at the parser level, rather than above it.

pfefferle/wordpress-semantic-linkbacks#122

@gRegorLove
Copy link
Member

This would also require fallbacks for mb_substr and mb_strlen. What is WordPress' prior art for handling these fallbacks?

@miklb
Copy link

miklb commented Nov 12, 2017

Perhaps SimplePie's example is relevant here

https://github.com/simplepie/simplepie/blob/master/library/SimplePie/Misc.php#L327

@dshanske
Copy link
Member Author

@dshanske
Copy link
Member Author

dshanske commented Aug 24, 2019

https://github.com/symfony/polyfill-mbstring

Seems this might work.

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

No branches or pull requests

3 participants