Update docker file for php7 (#8112)
diff --git a/kokoro/linux/dockerfile/test/php/Dockerfile b/kokoro/linux/dockerfile/test/php/Dockerfile index a540177..f2fe836 100644 --- a/kokoro/linux/dockerfile/test/php/Dockerfile +++ b/kokoro/linux/dockerfile/test/php/Dockerfile
@@ -55,66 +55,6 @@ # Download php source code RUN git clone https://github.com/php/php-src -# php 5.5 -RUN cd php-src \ - && git checkout PHP-5.5.38 \ - && ./buildconf --force -RUN cd php-src \ - && ./configure \ - --enable-bcmath \ - --with-gmp \ - --with-openssl \ - --with-zlib \ - --prefix=/usr/local/php-5.5 \ - && make \ - && make install \ - && make clean -RUN cd php-src \ - && ./configure \ - --enable-maintainer-zts \ - --with-gmp \ - --with-openssl \ - --with-zlib \ - --prefix=/usr/local/php-5.5-zts \ - && make \ - && make install \ - && make clean - -RUN wget -O phpunit https://phar.phpunit.de/phpunit-4.phar \ - && chmod +x phpunit \ - && cp phpunit /usr/local/php-5.5/bin \ - && mv phpunit /usr/local/php-5.5-zts/bin - -# php 5.6 -RUN cd php-src \ - && git checkout PHP-5.6.39 \ - && ./buildconf --force -RUN cd php-src \ - && ./configure \ - --enable-bcmath \ - --with-gmp \ - --with-openssl \ - --with-zlib \ - --prefix=/usr/local/php-5.6 \ - && make \ - && make install \ - && make clean -RUN cd php-src \ - && ./configure \ - --enable-maintainer-zts \ - --with-gmp \ - --with-openssl \ - --with-zlib \ - --prefix=/usr/local/php-5.6-zts \ - && make \ - && make install \ - && make clean - -RUN wget -O phpunit https://phar.phpunit.de/phpunit-5.phar \ - && chmod +x phpunit \ - && cp phpunit /usr/local/php-5.6/bin \ - && mv phpunit /usr/local/php-5.6-zts/bin - # php 7.0 RUN cd php-src \ && git checkout PHP-7.0.33 \ @@ -122,6 +62,7 @@ RUN cd php-src \ && ./configure \ --enable-bcmath \ + --enable-mbstring \ --with-gmp \ --with-openssl \ --with-zlib \ @@ -132,6 +73,7 @@ RUN cd php-src \ && ./configure \ --enable-maintainer-zts \ + --enable-mbstring \ --with-gmp \ --with-openssl \ --with-zlib \ @@ -152,6 +94,7 @@ RUN cd php-src \ && ./configure \ --enable-bcmath \ + --enable-mbstring \ --with-gmp \ --with-openssl \ --with-zlib \ @@ -162,6 +105,7 @@ RUN cd php-src \ && ./configure \ --enable-maintainer-zts \ + --enable-mbstring \ --with-gmp \ --with-openssl \ --with-zlib \ @@ -170,7 +114,7 @@ && make install \ && make clean -RUN wget -O phpunit https://phar.phpunit.de/phpunit-7.phar \ +RUN wget -O phpunit https://phar.phpunit.de/phpunit-7.5.0.phar \ && chmod +x phpunit \ && cp phpunit /usr/local/php-7.1/bin \ && mv phpunit /usr/local/php-7.1-zts/bin @@ -182,6 +126,7 @@ RUN cd php-src \ && ./configure \ --enable-bcmath \ + --enable-mbstring \ --with-gmp \ --with-openssl \ --with-zlib \ @@ -192,6 +137,7 @@ RUN cd php-src \ && ./configure \ --enable-maintainer-zts \ + --enable-mbstring \ --with-gmp \ --with-openssl \ --with-zlib \ @@ -200,7 +146,7 @@ && make install \ && make clean -RUN wget -O phpunit https://phar.phpunit.de/phpunit-7.phar \ +RUN wget -O phpunit https://phar.phpunit.de/phpunit-7.5.0.phar \ && chmod +x phpunit \ && cp phpunit /usr/local/php-7.2/bin \ && mv phpunit /usr/local/php-7.2-zts/bin @@ -212,6 +158,7 @@ RUN cd php-src \ && ./configure \ --enable-bcmath \ + --enable-mbstring \ --with-gmp \ --with-openssl \ --with-zlib \ @@ -222,6 +169,7 @@ RUN cd php-src \ && ./configure \ --enable-maintainer-zts \ + --enable-mbstring \ --with-gmp \ --with-openssl \ --with-zlib \ @@ -230,7 +178,7 @@ && make install \ && make clean -RUN wget -O phpunit https://phar.phpunit.de/phpunit-7.phar \ +RUN wget -O phpunit https://phar.phpunit.de/phpunit-7.5.0.phar \ && chmod +x phpunit \ && cp phpunit /usr/local/php-7.3/bin \ && mv phpunit /usr/local/php-7.3-zts/bin @@ -253,6 +201,8 @@ && ./buildconf --force \ && ./configure \ --enable-bcmath \ + --enable-mbstring \ + --disable-mbregex \ --with-gmp \ --with-openssl \ --with-zlib \ @@ -264,6 +214,8 @@ && ./buildconf --force \ && ./configure \ --enable-maintainer-zts \ + --enable-mbstring \ + --disable-mbregex \ --with-gmp \ --with-openssl \ --with-zlib \