diff options
author | Colin Viebrock <cmv@php.net> | 2000-04-06 21:07:44 +0000 |
---|---|---|
committer | Colin Viebrock <cmv@php.net> | 2000-04-06 21:07:44 +0000 |
commit | a7c8bfb9fb2d20341181c3ab351fc436a4cc0e2a (patch) | |
tree | 7178e45bc4ef17f47f744fd6c1517362734ded68 /ext/interbase | |
parent | 56fc855afdde5270d9b6558734bd476669224e1d (diff) | |
download | php-git-a7c8bfb9fb2d20341181c3ab351fc436a4cc0e2a.tar.gz |
phpinfo() prettying
Diffstat (limited to 'ext/interbase')
-rw-r--r-- | ext/interbase/interbase.c | 12 |
1 files changed, 7 insertions, 5 deletions
diff --git a/ext/interbase/interbase.c b/ext/interbase/interbase.c index 3d06f41ed1..4d05a5bf27 100644 --- a/ext/interbase/interbase.c +++ b/ext/interbase/interbase.c @@ -512,7 +512,7 @@ PHP_RSHUTDOWN_FUNCTION(ibase) PHP_MINFO_FUNCTION(ibase) { - char tmp[128]; + char tmp[32]; IBLS_FETCH(); @@ -525,17 +525,19 @@ PHP_MINFO_FUNCTION(ibase) php_info_print_table_row(2, "Allow Persistent Links", (IBG(allow_persistent)?"Yes":"No") ); if (IBG(max_persistent) == -1) { - snprintf(tmp, 128, "%d/unlimited", IBG(num_persistent)); + snprintf(tmp, 31, "%d/unlimited", IBG(num_persistent)); } else { - snprintf(tmp, 128, "%d/%ld", IBG(num_persistent), IBG(max_persistent)); + snprintf(tmp, 31, "%d/%ld", IBG(num_persistent), IBG(max_persistent)); } + tmp[31]=0; php_info_print_table_row(2, "Persistent Links", tmp ); if (IBG(max_links) == -1) { - snprintf(tmp, 128, "%d/unlimited", IBG(num_links)); + snprintf(tmp, 31, "%d/unlimited", IBG(num_links)); } else { - snprintf(tmp, 128, "%d/%ld", IBG(num_links), IBG(max_links)); + snprintf(tmp, 31, "%d/%ld", IBG(num_links), IBG(max_links)); } + tmp[31]=0; php_info_print_table_row(2, "Total Links", tmp ); php_info_print_table_row(2, "Time Format", IBG(timeformat) ); |