cvs: /php4/ext/pcre php_pcre.c
| From: | Colin Viebrock | Date: | Wed, 05 Apr 2000 20:43:29 +0000 |
| Subject: | cvs: /php4/ext/pcre php_pcre.c | ||
| Groups: | php.version4 | ||
| Request: | Send a blank email to php-version4+get-13183@lists.php.net to get a copy of this message | ||
cmv Wed Apr 5 13:43:29 2000 EDT
Modified files:
/php4/ext/pcre php_pcre.c
Log:
phpinfo() prettying
Index: php4/ext/pcre/php_pcre.c
diff -u php4/ext/pcre/php_pcre.c:1.44 php4/ext/pcre/php_pcre.c:1.45
--- php4/ext/pcre/php_pcre.c:1.44 Mon Mar 6 10:41:14 2000
+++ php4/ext/pcre/php_pcre.c Wed Apr 5 13:42:59 2000
@@ -16,7 +16,7 @@
+----------------------------------------------------------------------+
*/
-/* $Id: php_pcre.c,v 1.44 2000/03/06 18:41:14 ssb Exp $ */
+/* $Id: php_pcre.c,v 1.45 2000/04/05 20:42:59 cmv Exp $ */
/*
TODO:
@@ -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 /* {{{ 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();
}
/* }}} */