I've double checked that cURL is enabled and also modified the above script to check for the curl_multi_exec() function, yet I still get the same error:
Fatal error: Uncaught Error: Call to undefined function IPS\Http\Request\curl_multi_exec() in <PATH_TO_WEBSITE>\system\Http\Request\Curl.php:442 Stack trace: #0 <PATH_TO_WEBSITE>\system\Http\Request\Curl.php(496): IPS\Http\Request\_Curl->_executeMh() #1 <PATH_TO_WEBSITE>\system\Http\Request\Curl.php(321): IPS\Http\Request\_Curl->_executeAndFollowRedirects('POST', Array) #2 <PATH_TO_WEBSITE>\init.php(1116): IPS\Http\Request\_Curl->post(Array) #3 <PATH_TO_WEBSITE>\init.php(1050): IPS\IPS::reportExceptionToIPS(Object(Error)) #4 [internal function]: IPS\IPS::exceptionHandler(Object(Error)) #5 {main} thrown in <PATH_TO_WEBSITE>\system\Http\Request\Curl.php on line 442
It should be noted I am running this on Windows2019 using Apache 2.4.58 and PHP 8.2.3
PHP info output for cURL shows:
curl
cURL support
enabled
cURL Information
7.85.0
Age
9
Features
AsynchDNS
Yes
CharConv
No
Debug
No
GSS-Negotiate
No
IDN
Yes
IPv6
Yes
krb4
No
Largefile
Yes
libz
Yes
NTLM
Yes
NTLMWB
No
SPNEGO
Yes
SSL
Yes
SSPI
Yes
TLS-SRP
No
HTTP2
Yes
GSSAPI
No
KERBEROS5
Yes
UNIX_SOCKETS
Yes
PSL
No
HTTPS_PROXY
Yes
MULTI_SSL
No
BROTLI
No
ALTSVC
Yes
HTTP3
No
UNICODE
No
ZSTD
No
HSTS
Yes
GSASL
No
Protocols
dict, file, ftp, ftps, gopher, gophers, http, https, imap, imaps, ldap, ldaps, mqtt, pop3, pop3s, rtsp, scp, sftp, smb, smbs, smtp, smtps, telnet, tftp
Host
x86_64-pc-win32
SSL Version
OpenSSL/3.0.8
ZLib Version
1.2.12
libSSH Version
libssh2/1.10.0
Directive
Local Value
Master Value
curl.cainfo
no value
no value
(updated ips4 script attached showing the function I'm checking for)
ips4-new.php