Skip to content

Commit ce6aa50

Browse files
author
nono303
committed
Fix typo (like **ares** version was displayed as **ZLib**)
1 parent a6b3695 commit ce6aa50

File tree

1 file changed

+8
-6
lines changed

1 file changed

+8
-6
lines changed

ext/curl/interface.c

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -272,9 +272,10 @@ PHP_MINFO_FUNCTION(curl)
272272
d = curl_version_info(CURLVERSION_NOW);
273273
php_info_print_table_start();
274274
php_info_print_table_row(2, "cURL support", "enabled");
275-
php_info_print_table_row(2, "cURL Information", d->version);
275+
php_info_print_table_row(2, "cURL version", d->version);
276276
snprintf(str, sizeof(str), "%d", d->age);
277277
php_info_print_table_row(2, "Age", str);
278+
php_info_print_table_row(2, "Host", d->host);
278279

279280
// Features
280281
if (d->age >= CURLVERSION_ELEVENTH && d->feature_names) {
@@ -352,6 +353,7 @@ PHP_MINFO_FUNCTION(curl)
352353
}
353354
}
354355

356+
// Protocols
355357
n = 0;
356358
p = (char **) d->protocols;
357359
while (*p != NULL) {
@@ -360,8 +362,7 @@ PHP_MINFO_FUNCTION(curl)
360362
}
361363
php_info_print_table_row(2, "Protocols", str);
362364

363-
php_info_print_table_row(2, "Host", d->host);
364-
365+
// SSL
365366
if (d->ssl_version) {
366367
php_info_print_table_row(2, "SSL Version", d->ssl_version);
367368
}
@@ -374,13 +375,14 @@ PHP_MINFO_FUNCTION(curl)
374375
}
375376
php_info_print_table_row(2, "SSL backends", str);
376377

378+
// Feature versions
377379
if (d->libz_version) {
378-
php_info_print_table_row(2, "ZLib Version", d->libz_version);
380+
php_info_print_table_row(2, "Zlib Version", d->libz_version);
379381
}
380382

381383
#if defined(CURLVERSION_SECOND) && CURLVERSION_NOW >= CURLVERSION_SECOND
382384
if (d->ares) {
383-
php_info_print_table_row(2, "ZLib Version", d->ares);
385+
php_info_print_table_row(2, "c-ares Version", d->ares);
384386
}
385387
#endif
386388

@@ -1053,6 +1055,7 @@ PHP_FUNCTION(curl_version)
10531055

10541056
CAAL("version_number", d->version_num);
10551057
CAAL("age", d->age);
1058+
CAAS("host", d->host);
10561059

10571060
/* Add an array of features */
10581061
zval feature_list;
@@ -1130,7 +1133,6 @@ PHP_FUNCTION(curl_version)
11301133
CAAZ("features", &feature_list);
11311134
CAAL("ssl_version_number", d->ssl_version_num);
11321135
CAAS("version", d->version);
1133-
CAAS("host", d->host);
11341136
CAAS("ssl_version", d->ssl_version);
11351137
CAAS("libz_version", d->libz_version);
11361138
/* Add an array of protocols */

0 commit comments

Comments
 (0)