summaryrefslogtreecommitdiff
path: root/ext/zlib
diff options
context:
space:
mode:
authorColin Viebrock <cmv@php.net>2000-04-05 21:43:03 +0000
committerColin Viebrock <cmv@php.net>2000-04-05 21:43:03 +0000
commit0c2b366ce18ec4927ae31151ad05249c857e2e72 (patch)
tree69d1e09c3a86ebb153224ba20189d93fe5cf5ce8 /ext/zlib
parent3ba4105fde8739a5d70a9c3818c6a40ca9a55c8a (diff)
downloadphp-git-0c2b366ce18ec4927ae31151ad05249c857e2e72.tar.gz
phpinfo() prettying
Diffstat (limited to 'ext/zlib')
-rw-r--r--ext/zlib/zlib.c11
1 files changed, 6 insertions, 5 deletions
diff --git a/ext/zlib/zlib.c b/ext/zlib/zlib.c
index 52440e749c..9ecf815122 100644
--- a/ext/zlib/zlib.c
+++ b/ext/zlib/zlib.c
@@ -39,6 +39,7 @@
#include "ext/standard/head.h"
#include "safe_mode.h"
#include "ext/standard/php_standard.h"
+#include "ext/standard/info.h"
#include "php_zlib.h"
#include "fopen-wrappers.h"
#if HAVE_PWD_H
@@ -141,11 +142,11 @@ PHP_MSHUTDOWN_FUNCTION(zlib)
PHP_MINFO_FUNCTION(zlib)
{
- PUTS("Zlib support active (compiled with ");
- PUTS(ZLIB_VERSION);
- PUTS(", linked with ");
- PUTS((char *)zlibVersion());
- PUTS(").");
+ php_info_print_table_start();
+ php_info_print_table_row(2, "ZLib Support", "enabled");
+ php_info_print_table_row(2, "Compiled Version", ZLIB_VERSION );
+ php_info_print_table_row(2, "Linked Version", (char *)zlibVersion() );
+ php_info_print_table_end();
}
static gzFile *php_gzopen_with_path(char *filename, char *mode, char *path, char **opened_path);