|
From: Michael K. <mic...@ip...> - 2023-03-24 00:40:41
|
Hi Devs As we are using more and more PHP libraries for our web interface and respective integrations, we’re finding that certain PHP packages (i.e. iconv) seem to be a requirement for many of these libraries. The following are some of the libraries that we are having issues with: * https://github.com/Adldap2/Adldap2 (elegant library to work with LDAP which we will now be using more and more) * https://github.com/guzzle/guzzle (would make working with APIs far more intuitive rather than using raw PHP curl functions) * https://github.com/parsecsv/parsecsv-for-php (I understand that CSV importing is entirely possible with raw PHP functions but parsing CSVs with multiline text and non-askii character encodings breaks the import – this library handles things very nicely) * We use Mailgun and Twilio integration which can make use of the above libraries * A number of other libraries that we’ve attempted using in the past The primary issue that we get in attempting to use the above libraries is that iconv or mbstring is required (to convert character encodings). In addition, we often get the following error: Compilation failed: this version of PCRE is compiled without UTF support What we have also found is that if PCRE is compiled with UTF support, we can use a Polyfill to accommodate iconv: https://github.com/symfony/polyfill-iconv In other words, we should be able to get away with just having PCRE compiled with UTF support even without having iconv (although iconv would be ideal). UTF-8 is a very common character encoding and not having PCRE support for it has proved to be very problematic. Would it be possible to compile PCRE with UTF support in the standard Astlinux build? Regards Michael Knill |