From: Sascha Schumann Date: Mon, 4 Dec 2000 10:22:46 +0000 (+0000) Subject: Handle the case of no-handlers properly and make handlers a proper C "string". X-Git-Tag: php-4.0.5RC1~1030 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=e052f9f575722517ee4d06520e9a23b7cca3116c;p=php Handle the case of no-handlers properly and make handlers a proper C "string". --- diff --git a/ext/dba/dba.c b/ext/dba/dba.c index 7fc8e60d69..c432b70018 100644 --- a/ext/dba/dba.c +++ b/ext/dba/dba.c @@ -220,9 +220,14 @@ static PHP_MINFO_FUNCTION(dba) php_info_print_table_start(); php_info_print_table_row(2, "DBA support", "enabled"); - php_info_print_table_row(2, "Supported handlers", handlers.c); + if (handlers.c) { + smart_str_0(&handlers); + php_info_print_table_row(2, "Supported handlers", handlers.c); + smart_str_free(&handlers); + } else { + php_info_print_table_row(2, "Supported handlers", "none"); + } php_info_print_table_end(); - smart_str_free(&handlers); }