Skip to content

Commit 3a7285e

Browse files
committed
Expose version constants and stability
1 parent 7bf5716 commit 3a7285e

File tree

1 file changed

+7
-3
lines changed

1 file changed

+7
-3
lines changed

php_phongo.c

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1274,6 +1274,9 @@ PHP_MINIT_FUNCTION(phongo)
12741274
PHP_MINIT(Timestamp)(INIT_FUNC_ARGS_PASSTHRU);
12751275
PHP_MINIT(UTCDatetime)(INIT_FUNC_ARGS_PASSTHRU);
12761276

1277+
REGISTER_STRING_CONSTANT("PHONGO_VERSION", PHONGO_VERSION_S, CONST_CS | CONST_PERSISTENT);
1278+
REGISTER_STRING_CONSTANT("PHONGO_STABILITY", PHONGO_STABILITY_S, CONST_CS | CONST_PERSISTENT);
1279+
12771280
return SUCCESS;
12781281
}
12791282
/* }}} */
@@ -1324,9 +1327,10 @@ PHP_MINFO_FUNCTION(phongo)
13241327
{
13251328
php_info_print_table_start();
13261329
php_info_print_table_header(2, "phongo support", "enabled");
1327-
php_info_print_table_row(2, "phongo", PHONGO_VERSION_S);
1328-
php_info_print_table_row(2, "libmongoc", MONGOC_VERSION_S);
1329-
php_info_print_table_row(2, "libbson", BSON_VERSION_S);
1330+
php_info_print_table_row(2, "phongo version", PHONGO_VERSION_S);
1331+
php_info_print_table_row(2, "phongo stability", PHONGO_STABILITY_S);
1332+
php_info_print_table_row(2, "libmongoc version", MONGOC_VERSION_S);
1333+
php_info_print_table_row(2, "libbson version", BSON_VERSION_S);
13301334
php_info_print_table_end();
13311335

13321336
DISPLAY_INI_ENTRIES();

0 commit comments

Comments
 (0)