安装了最新的libzip,但php 7.3仍然抛出错误

时间:2019-05-14 13:15:17

标签: php-7.3 libzip

我已经使用pecl install zip安装了zip,并在ini文件中启用了扩展功能。当我启动和停止php时,不会显示错误警告。当我运行php -i时,我得到以下信息

zip

Zip => enabled
Zip version => 1.15.4
Libzip headers version => 1.5.1
php: symbol lookup error: php: undefined symbol: zip_libzip_version


PHP 7.3.3 (cli) (built: May  7 2019 12:41:14) ( ZTS DEBUG )
Copyright (c) 1997-2018 The PHP Group
Zend Engine v3.3.3, Copyright (c) 1998-2018 Zend Technologies
    with Zend OPcache v7.3.3, Copyright (c) 1999-2018, by Zend Technologies

我使用

进行了编译
cd ext/
git clone https://github.com/krakjoe/pthreads.git
cd ..
./configure --enable-fpm --with-fpm-systemd --with-gd --with-openssl --with-ldap --with-pcre-regex --with-libzip --with-zlib --with-curl --with-gd --enable-mbstring --enable-zip --with-libdir=lib64 --prefix=/opt/SP/php-7.3.3 --enable-pthreads=shared --with-tsrm-pthreads --enable-maintainer-zts --enable-pcntl --enable-debug --enable-cli

0 个答案:

没有答案