Problem/Motivation
We have an old PHP 5.3 production server and while we await our shiny new PHP 7.x server we'd like to use this module and only one function call seems to break our old clunker.
Proposed resolution
Swap the call to mb_substr with drupal_substr
| Comment | File | Size | Author |
|---|---|---|---|
| #2 | 3003199-2-mb_substr.patch | 505 bytes | joelpittet |
Comments
Comment #2
joelpittetHere's a one line patch to solve our woes. Please take pity on our infra 🙏
Comment #3
Anonymous (not verified) commentedRTBC
drupal_substr()automatically checks if the unicode library is installed and provides a fallback if the library is missing.Comment #5
joelpittetDrupal 8 uses
mb_substrin core so it's not needed for 8.x branch.