Skip to content

Commit 2c4a1ed

Browse files
committed
More descriptive labels for ext/dep versions in phpinfo()
1 parent b64c437 commit 2c4a1ed

File tree

3 files changed

+15
-15
lines changed

3 files changed

+15
-15
lines changed

php_phongo.c

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1963,21 +1963,21 @@ PHP_GSHUTDOWN_FUNCTION(mongodb)
19631963
PHP_MINFO_FUNCTION(mongodb)
19641964
{
19651965
php_info_print_table_start();
1966-
php_info_print_table_header(2, "mongodb support", "enabled");
1967-
php_info_print_table_row(2, "mongodb version", MONGODB_VERSION_S);
1968-
php_info_print_table_row(2, "mongodb stability", MONGODB_STABILITY_S);
1966+
php_info_print_table_header(2, "MongoDB support", "enabled");
1967+
php_info_print_table_row(2, "MongoDB extension version", MONGODB_VERSION_S);
1968+
php_info_print_table_row(2, "MongoDB extension stability", MONGODB_STABILITY_S);
19691969
#ifdef HAVE_SYSTEM_LIBMONGOC
19701970
php_info_print_table_row(2, "libmongoc headers version", MONGOC_VERSION_S);
19711971
php_info_print_table_row(2, "libmongoc library version", mongoc_get_version());
19721972
#else
19731973
/* Bundled libraries, buildtime = runtime */
1974-
php_info_print_table_row(2, "libmongoc version", MONGOC_VERSION_S);
1974+
php_info_print_table_row(2, "libmongoc bundled version", MONGOC_VERSION_S);
19751975
#endif
19761976
#ifdef HAVE_SYSTEM_LIBBSON
19771977
php_info_print_table_row(2, "libbson headers version", BSON_VERSION_S);
19781978
php_info_print_table_row(2, "libbson library version", bson_get_version());
19791979
#else
1980-
php_info_print_table_row(2, "libbson version", BSON_VERSION_S);
1980+
php_info_print_table_row(2, "libbson bundled version", BSON_VERSION_S);
19811981
#endif
19821982
php_info_print_table_end();
19831983

tests/functional/phpinfo-1.phpt

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -16,11 +16,11 @@ phpinfo();
1616
%a
1717
mongodb
1818

19-
mongodb support => enabled
20-
mongodb version => 1.%d.%d%S
21-
mongodb stability => %s
22-
libmongoc version => 1.%s
23-
libbson version => 1.%s
19+
MongoDB support => enabled
20+
MongoDB extension version => 1.%d.%d%S
21+
MongoDB extension stability => %s
22+
libmongoc bundled version => 1.%s
23+
libbson bundled version => 1.%s
2424

2525
Directive => Local Value => Master Value
2626
mongodb.debug => no value => no value

tests/functional/phpinfo-2.phpt

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -19,11 +19,11 @@ phpinfo();
1919
%a
2020
mongodb
2121

22-
mongodb support => enabled
23-
mongodb version => 1.%d.%d%S
24-
mongodb stability => %s
25-
libmongoc version => 1.%s
26-
libbson version => 1.%s
22+
MongoDB support => enabled
23+
MongoDB extension version => 1.%d.%d%S
24+
MongoDB extension stability => %s
25+
libmongoc bundled version => 1.%s
26+
libbson bundled version => 1.%s
2727

2828
Directive => Local Value => Master Value
2929
mongodb.debug => stdout => stderr

0 commit comments

Comments
 (0)