오래된 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

그래도 효과가 없다면... 슬프게도 저는 도울 수 없습니다...

관련 정보