summaryrefslogtreecommitdiff
path: root/ext/pcre/php_pcre.c
diff options
context:
space:
mode:
authorColin Viebrock <cmv@php.net>2000-04-05 20:42:59 +0000
committerColin Viebrock <cmv@php.net>2000-04-05 20:42:59 +0000
commitfddd1201b42d333873e26880ada689bdfd930735 (patch)
tree28e60dc0e210c904bb01c30ac0069b04f7f3b29a /ext/pcre/php_pcre.c
parent5e296bfe976618472899f4745c6329badc57193d (diff)
downloadphp-git-fddd1201b42d333873e26880ada689bdfd930735.tar.gz
phpinfo() prettying
Diffstat (limited to 'ext/pcre/php_pcre.c')
-rw-r--r--ext/pcre/php_pcre.c9
1 files changed, 4 insertions, 5 deletions
diff --git a/ext/pcre/php_pcre.c b/ext/pcre/php_pcre.c
index feb19cd12c..e38021012e 100644
--- a/ext/pcre/php_pcre.c
+++ b/ext/pcre/php_pcre.c
@@ -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();
}
/* }}} */