If I execute php -i then I get this at the top:
PHP Warning:  PHP Startup: curl: Unable to initialize module
Module compiled with module API=20170718
PHP    compiled with module API=20180731
How can I upgrade the php extension / module?
I installed a new PHP version from source, but the warning is still there.
Do I have to include a special option in configure?
This is what I have used: ./configure --with-config-file-path=/etc/php7/cli --with-config-file-scan-dir=/etc/php7/cli