We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 518a233 commit b85c2e2Copy full SHA for b85c2e2
1 file changed
ext-src/php_swoole.cc
@@ -40,6 +40,9 @@ END_EXTERN_C()
40
#include <net/if.h>
41
#include <ifaddrs.h>
42
#include <sys/ioctl.h>
43
+#ifdef SW_USE_CURL
44
+#include <curl/curl.h>
45
+#endif
46
47
#if defined(__MACH__) || defined(__FreeBSD__) || defined(__OpenBSD__) || defined(__NetBSD__)
48
#include <net/if_dl.h>
@@ -869,6 +872,8 @@ PHP_MINFO_FUNCTION(swoole) {
869
872
php_info_print_table_row(2, "json", "enabled");
870
873
#ifdef SW_USE_CURL
871
874
php_info_print_table_row(2, "curl-native", "enabled");
875
+ curl_version_info_data *d = curl_version_info(CURLVERSION_NOW);
876
+ php_info_print_table_row(2, "curl-version", d->version);
877
#endif
878
#ifdef HAVE_PCRE
879
php_info_print_table_row(2, "pcre", "enabled");
0 commit comments