+
+ php_info_print_table_start();
+ php_info_print_table_colspan_header(2, "Supported ETag Hash Algorithms");
+ {
+
+ php_info_print_table_row(2, "PHP", "CRC32, MD5, SHA1");
+#ifdef HTTP_HAVE_MHASH
+ {
+ phpstr *algos = phpstr_new();
+ int i, c = mhash_count();
+
+ for (i = 0; i <= c; ++i) {
+ const char *hash = mhash_get_hash_name_static(i);
+
+ if (hash) {
+ phpstr_appendf(algos, "%s, ", hash);
+ }
+ }
+ phpstr_fix(algos);
+ php_info_print_table_row(2, "MHASH", PHPSTR_VAL(algos));
+ phpstr_free(&algos);
+ }
+#else
+ php_info_print_table_row(2, "MHASH", "not available");
+#endif
+ }
+ php_info_print_table_end();