PHP 7.2.3 のコンパイルオプション

estis2018/03/18 (日) 09:22 に投稿

PHP 7.1.14 の時は、

$ ./configure --with-libdir=lib64 --with-apxs2=/usr/local/apache2/bin/apxs --prefix=/usr/local/php --with-config-file-path=/usr/local/php/etc --with-pear=/usr/local/php/pear --sysconfdir=/usr/local/php/etc --with-bz2 --with-gmp --with-gettext --with-mysqli --with-pdo-mysql --with-gdbm=/usr --with-xsl=/usr --with-snmp --with-gd --with-kerberos --with-openssl --with-freetype-dir --with-imap=/usr/lib64 --with-imap-ssl --with-zlib-dir=/usr --with-jpeg-dir=/usr --with-png-dir=/usr --with-xpm-dir=/usr --with-curl --enable-exif --with-iconv-dir=/usr/lib64 --with-mcrypt=/usr/local --enable-bcmath --enable-gd-jis-conv --enable-gd-native-ttf --enable-ftp --enable-ctype --enable-sockets --enable-calendar --enable-mbregex --enable-mbstring --enable-zip --enable-soap --enable-opcache --with-xmlrpc

としていたが、
同じ内容で実行すると、

configure: WARNING: unrecognized options: --with-mcrypt, --enable-gd-native-ttf
と、
configure: WARNING: ========================================================
configure: WARNING: Use of bundled libzip is deprecated and will be removed.
configure: WARNING: Some features such as encryption and bzip2 are not available.
configure: WARNING: Use system library and --with-libzip is recommended.
configure: WARNING: ========================================================
と言われたので、

$ ./configure --with-libdir=lib64 --with-apxs2=/usr/local/apache2/bin/apxs --prefix=/usr/local/php --with-config-file-path=/usr/local/php/etc --with-pear=/usr/local/php/pear --sysconfdir=/usr/local/php/etc --with-bz2 --with-gmp --with-gettext --with-mysqli --with-pdo-mysql --with-gdbm=/usr --with-xsl=/usr --with-snmp --with-gd --with-kerberos --with-openssl --with-freetype-dir --with-imap=/usr/lib64 --with-imap-ssl --with-zlib-dir=/usr --with-jpeg-dir=/usr --with-png-dir=/usr --with-xpm-dir=/usr --with-curl --enable-exif --with-iconv-dir=/usr/lib64 --enable-bcmath --enable-gd-jis-conv --enable-ftp --enable-ctype --enable-sockets --enable-calendar --enable-mbregex --enable-mbstring --enable-soap --enable-opcache --with-xmlrpc --with-libzip

に変更した。