How to install extension for php via docker-php-ext-install?

后端 未结 5 814
再見小時候
再見小時候 2020-12-28 13:40

In order to resolve an issue, I am now trying install the mysql pdo via

docker-php-ext-install

as pointed out in the README of the php imag

5条回答
  •  隐瞒了意图╮
    2020-12-28 14:03

    Seems to be a bug in phpize (https://bugs.php.net/bug.php?id=53571).

    I added the following to docker-php-ext-configure:

    /usr/local/bin # diff -u docker-php-ext-configure.bak docker-php-ext-configure
    --- docker-php-ext-configure.bak
    +++ docker-php-ext-configure
    @@ -54,5 +54,6 @@
    
     set -x
     cd "$ext"
    +[[ ! -f "config.m4" && -f "config0.m4" ]] && mv config0.m4 config.m4
     phpize
     ./configure "$@"
    

提交回复
热议问题