1
0
mirror of https://github.com/php/php-src.git synced 2026-04-30 03:33:17 +02:00

a better way, i've been told (thanks)

This commit is contained in:
Colin Viebrock
2000-04-06 17:01:41 +00:00
parent 5115342c6e
commit 2cb6745cf0
+4 -9
View File
@@ -513,7 +513,6 @@ PHP_MINFO_FUNCTION(ibase)
{
char tmp[128];
char tmp2[128];
IBLS_FETCH();
@@ -525,21 +524,17 @@ PHP_MINFO_FUNCTION(ibase)
#endif
php_info_print_table_row(2, "Allow Persistent Links", (IBG(allow_persistent)?"Yes":"No") );
sprintf(tmp, "%d/", IBG(num_persistent) );
if (IBG(max_persistent) == -1) {
strcat(tmp, "unlimited");
snprintf(tmp, 128, "%d/unlimited", IBG(num_persistent));
} else {
sprintf(tmp2, "%ld", IBG(max_persistent));
strcat(tmp, tmp2);
snprintf(tmp, 128, "%d/%ld", IBG(num_persistent), IBG(max_persistent));
}
php_info_print_table_row(2, "Persistent Links", tmp );
sprintf(tmp, "%d/", IBG(num_links) );
if (IBG(max_links) == -1) {
strcat(tmp, "unlimited");
snprintf(tmp, 128, "%d/unlimited", IBG(num_links));
} else {
sprintf(tmp2, "%ld", IBG(max_links));
strcat(tmp, tmp2);
snprintf(tmp, 128, "%d/%ld", IBG(num_links), IBG(max_links));
}
php_info_print_table_row(2, "Total Links", tmp );