Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.

ilex01's avatar
Level 5

Call to undefined function curl_version()

When I try to access: /billing I get this error:

Call to undefined function curl_version()

See the screen capture hereafter for more info: https://i.gyazo.com/234013c228031f322e3a739fcfc8f485.png

0 likes
6 replies
tisuchi's avatar

@ilex01 Probably the cURL extension is not enabled in your PHP configuration locally.

If not, then, in your php.ini, just enabled it by removing the ; in front of it.

From

;extension=curl

to

extension=curl
1 like
tisuchi's avatar

@ilex01 Does it loaded when you try to check in the phpinfo()?

1 like
ilex01's avatar
Level 5
<?php
print_r(curl_version());  

Array
(
    [version_number] => 525312
    [age] => 10
    [features] => 1361907613
    [ssl_version_number] => 0
    [version] => 8.4.0
    [host] => x86_64-pc-win32
    [ssl_version] => OpenSSL/3.1.3
    [libz_version] => 1.2.12
    [protocols] => Array
        (
            [0] => dict
            [1] => file
            [2] => ftp
            [3] => ftps
            [4] => gopher
            [5] => gophers
            [6] => http
            [7] => https
            [8] => imap
            [9] => imaps
            [10] => ldap
            [11] => ldaps
            [12] => mqtt
            [13] => pop3
            [14] => pop3s
            [15] => rtsp
            [16] => scp
            [17] => sftp
            [18] => smb
            [19] => smbs
            [20] => smtp
            [21] => smtps
            [22] => telnet
            [23] => tftp
        )

    [ares] => 
    [ares_num] => 0
    [libidn] => 
    [iconv_ver_num] => 0
    [libssh_version] => libssh2/1.10.0
    [brotli_ver_num] => 0
    [brotli_version] => 
)

https://i.gyazo.com/88a6f71caf8d5cfc1ff650f79cd22be6.png

1 like

Please or to participate in this conversation.