Skip to content

Commit 72c54a5

Browse files
author
nono303
committed
rollback for curl_version()
- put back long: version_number & features - keep original key: feature_list
1 parent 4dd4982 commit 72c54a5

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

ext/curl/interface.c

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1067,9 +1067,10 @@ PHP_FUNCTION(curl_version)
10671067
array_init(return_value);
10681068

10691069
CAAS("version", d->version);
1070+
CAAL("version_number", d->version_num);
10701071
CAAL("age", d->age);
10711072
CAAS("host", d->host);
1072-
1073+
CAAL("features", d->features);
10731074
/* Add an array of features */
10741075
zval feature_list;
10751076
array_init(&feature_list);
@@ -1144,7 +1145,7 @@ PHP_FUNCTION(curl_version)
11441145
}
11451146
}
11461147
}
1147-
CAAZ("features", &feature_list);
1148+
CAAZ("feature_list", &feature_list);
11481149

11491150
/* Add an array of protocols */
11501151
{

0 commit comments

Comments
 (0)