升級過時的 PHP 模組

升級過時的 PHP 模組

如果我執行,php -i那麼我會在頂部得到這個:

PHP Warning:  PHP Startup: curl: Unable to initialize module
Module compiled with module API=20170718
PHP    compiled with module API=20180731

如何升級 php 擴充/模組?

我從原始程式碼安裝了新的 PHP 版本,但警告仍然存在。

我必須在其中包含一個特殊選項嗎configure

這是我用過的:./configure --with-config-file-path=/etc/php7/cli --with-config-file-scan-dir=/etc/php7/cli

答案1

抱歉我還不能發表評論

可能使用pecl命令,重新下載有問題的擴展的源代碼,並重新編譯它們?

這就是所有的文檔https://pecl.php.net/

那你可以嘗試

pecl upgrade-all

或者

pecl uninstall module_name

進而

pecl install module_name

如果這些不起作用...可悲的是我無能為力...

相關內容