I tried everything I could find like instructions here How to get CURL to work with PHP on Windows? (WAMP)
to copy dll files from php7.2.0
folder to apache2.4.18\
bin folder
my setup
win 10 64
wamp 3.1.1
php, 5.6.28, 7.0.4, 7.2
apache 2.4.18
curl works on any other php version but not on 7.2
cheeked extension_dir
path and it points to right dir
extension_dir ="T:/wamp64/bin/php/php7.2.0/ext/"
loaded php 7.2 extensions
extension=bz2
extension=curl
;extension=dba
extension=com_dotnet
;extension=enchant
extension=fileinfo
;extension=ftp
extension=gd2
extension=gettext
extension=gmp
extension=intl
extension=imap
;extension=interbase
extension=ldap
extension=mbstring
extension=exif ; Must be after mbstring as it depends on it
extension=mysqli
;extension=odbc
extension=openssl
;extension=pdo_firebird
extension=pdo_mysql
;extension=pdo_oci
;extension=oci8_12c ; Use with Oracle Database 12c Instant Client
;extension=pdo_odbc
;extension=pdo_pgsql
extension=pdo_sqlite
;extension=pgsql
;extension=phpdbg_webhelper
;extension=shmop
now I see that in 7.0.4 there was php_ prefix and dll suffix
extension=php_curl.dll
but this is in the 7.2 info
; When the extension library to load is not located in the default extension
; directory, You may specify an absolute path to the library file:
;
; extension=/path/to/extension/mysqli.so
;
; Note : The syntax used in previous PHP versions ('extension=<ext>.so' and
; 'extension='php_<ext>.dll') is supported for legacy reasons and may be
; deprecated in a future PHP major version. So, when it is possible, please
; move to the new ('extension=<ext>) syntax.
;
; Notes for Windows environments :
;
; - ODBC support is built in, so no dll is needed for it.
; - Many DLL files are located in the extensions/ (PHP 4) or ext/ (PHP 5+)
; extension folders as well as the separate PECL DLL download (PHP 5+).
; Be sure to appropriately set the extension_dir directive.
someone else had the same issue but there was no solution http://forum.wampserver.com/read.php?2,149346,149609#REPLY
display_startup_errors
disabled in php.ini (or that it's not in the .ini at all - and the default value if its not in the php.ini is disabled!), please setdisplay_startup_errors=1
in php.ini, restart everything and try again. – Devaluate