PHP 5.0.1 does NOT return a string for curl_version -- it instead returns an array in this format. (Values are for my dev box at the time of this writing, your results will vary.)
Array
(
[version_number] => 461570
[age] => 1
[features] => 541
[ssl_version_number] => 9465935
[version] => 7.11.2
[host] => powerpc-apple-darwin6.8
[ssl_version] => OpenSSL/0.9.7d
[libz_version] => 1.1.3
[protocols] => Array
(
[0] => ftp
[1] => gopher
[2] => telnet
[3] => dict
[4] => ldap
[5] => http
[6] => file
[7] => https
[8] => ftps
)
)
curl_version
(PHP 4 >= 4.0.2, PHP 5)
curl_version — Gets cURL version information
설명
array curl_version
([ int $age
] )
Returns information about the cURL version.
매개변수
- age
-
반환값
Returns an associative array with the following elements:
| version_number | cURL 24 bit version number |
| version | cURL version number, as a string |
| ssl_version_number | OpenSSL 24 bit version number |
| ssl_version | OpenSSL version number, as a string |
| libz_version | zlib version number, as a string |
| host | Information about the host where cURL was built |
| age | |
| features | A bitmask of the CURL_VERSION_XXX constants |
| protocols | An array of protocols names supported by cURL |
curl_version
clay at killersoft dot com
24-Aug-2004 03:24
24-Aug-2004 03:24
