]> granicus.if.org Git - php/commitdiff
phpinfo() prettying
authorColin Viebrock <cmv@php.net>
Wed, 5 Apr 2000 20:42:59 +0000 (20:42 +0000)
committerColin Viebrock <cmv@php.net>
Wed, 5 Apr 2000 20:42:59 +0000 (20:42 +0000)
ext/pcre/php_pcre.c

index feb19cd12cc5a3a0e949907a38bbe0a18ceda76b..e38021012e5887d7bcd4ad9ca8403a915db374f9 100644 (file)
@@ -29,6 +29,7 @@
 #include "php.h"
 #include "php_globals.h"
 #include "php_pcre.h"
+#include "ext/standard/info.h"
 
 #if HAVE_PCRE || HAVE_BUNDLED_PCRE
 
@@ -87,11 +88,9 @@ static void _php_pcre_shutdown_globals(php_pcre_globals *pcre_globals)
 static /* {{{ PHP_MINFO_FUNCTION(pcre) */
 PHP_MINFO_FUNCTION(pcre)
 {
-       php_printf("Perl Compatible Regular Expressions");
-       php_printf("<table cellpadding=5>"
-                               "<tr><td>PCRE library version:</td>"
-                               "<td>%s</td></tr>"
-                               "</table>", pcre_version());
+       php_info_print_table_start();
+       php_info_print_table_row(2, "PCRE Library Version", pcre_version() );
+       php_info_print_table_end();
 }
 /* }}} */