Skip to content

Commit 5625b99

Browse files
committed
add serializers info in phpinfo
1 parent 3baccdd commit 5625b99

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

redis.c

+5
Original file line numberDiff line numberDiff line change
@@ -675,6 +675,11 @@ PHP_MINFO_FUNCTION(redis)
675675
php_info_print_table_start();
676676
php_info_print_table_header(2, "Redis Support", "enabled");
677677
php_info_print_table_row(2, "Redis Version", PHP_REDIS_VERSION);
678+
#ifdef HAVE_REDIS_IGBINARY
679+
php_info_print_table_row(2, "Available serializers", "php, igbinary");
680+
#else
681+
php_info_print_table_row(2, "Available serializers", "php");
682+
#endif
678683
php_info_print_table_end();
679684
}
680685

0 commit comments

Comments
 (0)