Skip to content

Commit

Permalink
Merge pull request #10 from remicollet/issue-phpinfo
Browse files Browse the repository at this point in the history
report headers/library/ABI version
  • Loading branch information
jcupitt authored Jun 8, 2017
2 parents 2b25911 + 9744fee commit 0b1155d
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions vips.c
Original file line number Diff line number Diff line change
Expand Up @@ -1833,6 +1833,13 @@ PHP_MINFO_FUNCTION(vips)
php_info_print_table_start();
php_info_print_table_header(2, "vips property", "value");

vips_snprintf(digits, 256, "%d.%d.%d", VIPS_MAJOR_VERSION, VIPS_MINOR_VERSION, VIPS_MICRO_VERSION);
php_info_print_table_row(2, "Vips headers version", digits);
vips_snprintf(digits, 256, "%d.%d.%d", vips_version(0), vips_version(1), vips_version(2));
php_info_print_table_row(2, "Vips library version", digits);
vips_snprintf(digits, 256, "%d.%d.%d", vips_version(3), vips_version(4), vips_version(5));
php_info_print_table_row(2, "Vips ABI version", digits);

vips_snprintf(digits, 256, "%d", vips_version(0));
php_info_print_table_row(2, "Major version", digits);
vips_snprintf(digits, 256, "%d", vips_version(1));
Expand Down

0 comments on commit 0b1155d

Please sign in to comment.