Skip to content

Commit

Permalink
Show libmosquitto version in phpinfo() output
Browse files Browse the repository at this point in the history
  • Loading branch information
mgdm committed Oct 4, 2013
1 parent a5aa811 commit 3106fdb
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion mosquitto.c
Original file line number Diff line number Diff line change
Expand Up @@ -717,8 +717,12 @@ PHP_MSHUTDOWN_FUNCTION(mosquitto)
/* {{{ PHP_MINFO_FUNCTION */
PHP_MINFO_FUNCTION(mosquitto)
{
char tmp[16];
snprintf(tmp, sizeof(tmp), "%d.%d.%d", LIBMOSQUITTO_MAJOR, LIBMOSQUITTO_MINOR, LIBMOSQUITTO_REVISION);

php_info_print_table_start();
php_info_print_table_header(2, "mosquitto support", "enabled");
php_info_print_table_header(2, "Mosquitto support", "enabled");
php_info_print_table_row(2, "libmosquitto version", tmp);
php_info_print_table_end();
}
/* }}} */
Expand Down

0 comments on commit 3106fdb

Please sign in to comment.