Can't find curl extension (PHP 8.1.25)

Any idea why I should get this error…Missing PHP extension(s)! Please install or enable the following required PHP extension(s) first:
curl… when curl appears to be correctly installed? Wampserver reports…

-- PHP Loaded Extensions
 With function get_loaded_extensions()
-- For PHP 8.1.25 used as Apache module
 bcmath        calendar      com_dotnet    Core          ctype         curl         
 date          dom           exif          fileinfo      filter        gd           
 gettext       gmp           hash          iconv         imap          intl         
 json          ldap          libxml        mbstring      mysqli        mysqlnd      
 openssl       pcre          PDO           pdo_mysql     pdo_sqlite    Phar         
 readline      Reflection    session       SimpleXML     soap          sockets      
 SPL           sqlite3       standard      tokenizer     xdebug        xml          
 xmlreader     xmlwriter     xsl           Zend OPcache  zip           zlib         


-- For PHP 8.1.25 used as CLI or FCGI
 bcmath        calendar      com_dotnet    Core          ctype         curl         
 date          dom           exif          fileinfo      filter        gd           
 gettext       gmp           hash          iconv         imap          intl         
 json          ldap          libxml        mbstring      mysqli        mysqlnd      
 openssl       pcre          PDO           pdo_mysql     pdo_sqlite    Phar         
 readline      Reflection    session       SimpleXML     soap          sockets      
 SPL           sqlite3       standard      tokenizer     xdebug        xml          
 xmlreader     xmlwriter     xsl           Zend OPcache  zip           zlib

Is there some other magic I’ve missed?

Make sure you have also updated the PHP used by web server. You might have checked a different installation of PHP, not that run by the web server.

phpinfo.php reports the same version of php and that curl is installed??

You may create a simple script to test your web server by extension_loaded(") which is used by PHPMaker to test PHP extensions, e.g.

<?php
if (!extension_loaded('curl')) {
    echo "curl not loaded";
}
?>

Now fixed. In case anyone else has the problem, this is the story…
I had updated php 8.1.0 to 8.1.25. However, 8.1.25 has a little known bug when used with Apache 2.4.51 which causes curl NOT to work even though the curl module is installed!
Updating Apache to 2.4.58 fixes the problem.

THANK YOU - this cost me a whole day! I needed to downgrade from php 8.3 to php 8.2 to get the site to run - you were correct - CURL was not loading correctly. Much appreciated!!!