Php:8.2.10-apache: INTL extension: created reference to php_intl.dll on an Ubuntu Server

Hello,

  • Ubuntu 20.04.6 LTS
  • php:8.2.10-apache
  • Docker version 20.10.16, build aa7e414
  • Installation of the intl extension via docker-php-ext-install
  • Previously created a /usr/local/etc/php/conf.d/custom.ini with some PHP common settings tweaks (memory, file limits, etc.) in the Dockerfile

What happened?

  • “PHP Startup: Unable to load dynamic library ‘php_intl.dll’”
  • At the very end of the /usr/local/etc/php/conf.d/custom.ini there was the line extension=php_intl.dll after the build process completed successfully.

Solved by removing the image and rebuilding everything from scratch. My question is: how is it possible that a reference to a DLL file (Windows) has been added under Linux?

Thanks in advance.

I don’t know, but was it enabled in the official image as well? If it was added later, then I can imagine a wrong regex that removed the comment character at the beginning it the line or somehow you copied a wrong config which was not for Linux.

Update:

I read the question again :slight_smile: So you copied a custom.ini file which had this line. Then it was not Docker that broke it somehow. Where did you get the custom.ini?

This topic was automatically closed 10 days after the last reply. New replies are no longer allowed.