Replies: 4 comments 3 replies
-
Hi - What are you referring to when you say '--enabled-mbstring' ? Which version of Postfixadmin are you referring to? The github build seems happy on PHP8 ... https://www.php.net/mb_split -> does exist in PHP 8 |
Beta Was this translation helpful? Give feedback.
-
Version is 3.3.13, latest, I believe. --enable-mbstring is a build switch when compiling PHP. It ensures the bundled mbstring code is included in the Makefile. I mentioned it here just in case someone would suggest it, as it is the main (usual) cause for mbstring not working. I know that the function is supposed to be included (said php.net), but it appears some of them have been suppressed (https://nahan.fr/migration-de-code-vers-php-8-mbstring-partie-2 , sorry, in french). Some are still there : php testmb.php Tried on several PHP8.2, and a 7.4.9 which I happened to have here... |
Beta Was this translation helpful? Give feedback.
-
hope you can figure out a solution soon!thanks |
Beta Was this translation helpful? Give feedback.
-
Hi all, I found it : it is not documented in the said functions, but some of the mb_ functions may be disabled by a configuration switch, when compiling PHP : --disable-mbregex ; and you HAVE to define this if you don't want to link to a mandatory external library "oniguruma", which is expected to be required when dealing with regexp + japanese or chinese symbols. BUT if you choose to not-enable this, you also lose some functions... like mb_split() ! Which you cannot figure is an eastern-regexep handler. (?) Long story short, the function is back if you compile PHP with oniguruma library. Everything back to normal. Thanks for reading ! |
Beta Was this translation helpful? Give feedback.
-
Hi all,
Correct me if I'm wrong, but in my experience PFA has become incompatible with recent PHP releases (8 but also 7.4+ which I tried), due to lack of some mbstring functions, even with --enabled-mbstring ? e.g mb_split doesn't exist any more, whereas mb_convert_encoding still does. An I right, and if yes, what would be a workaround ??
Beta Was this translation helpful? Give feedback.
All reactions