We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e760bf1 commit d29eb74Copy full SHA for d29eb74
Dockerfile
@@ -41,6 +41,14 @@ COPY --from=php /usr/local/etc/php /usr/local/etc/php
41
COPY --from=php /usr/lib/*.so.* /usr/lib
42
COPY --from=php /usr/local/lib/php /usr/local/lib/php
43
44
+# see https://github.com/elecena/python-php/issues/8
45
+# The problem seems to be that iconv in musl is not implemented to support that conversion, when using GNU iconv it works.
46
+RUN apk add gnu-libiconv
47
+# use GNU iconv in php
48
+ENV LD_PRELOAD="/usr/lib/preloadable_libiconv.so php-fpm php"
49
+# and test it...
50
+RUN php -r '$res = iconv("utf-8", "utf-8//IGNORE", "fooą");'
51
+
52
RUN php -v; php -m; php -i | grep ini
53
ENV PHP_VERSION 8.0.7
54
0 commit comments