#include "php.h"
#include "php_string.h"
#include "reg.h"
+#include "ext/standard/info.h"
#if 0
zend_module_entry regexp_module_entry = {
PHP_MINFO_FUNCTION(regex)
{
#if HSREGEX
- PUTS("Bundled regex library enabled<br>\n");
+ php_info_print_table_row(2, "Regex Library", "Bundled library enabled");
#else
- PUTS("System regex library enabled<br>\n");
+ php_info_print_table_row(2, "Regex Library", "System library enabled");
#endif
}
#include "php.h"
+#include "ext/standard/info.h"
#if !defined(PHP_API_VERSION) || PHP_API_VERSION < 19990421
#include "internal_functions.h"
#endif
static PHP_MINFO_FUNCTION(posix)
{
- PUTS("$Revision$\n");
+ php_info_print_table_start();
+ php_info_print_table_row(2, "Revision", "$Revision$");
+ php_info_print_table_end();
}
/* {{{ proto int posix_kill(int pid, int sig)
#include "php_ini.h"
#include "internal_functions_registry.h"
#include "php_standard.h"
+#include "ext/standard/info.h"
#include "zend_operators.h"
#include <stdarg.h>
#include <stdlib.h>
PHP_MINFO_FUNCTION(basic)
{
+ php_info_print_table_start();
PHP_MINFO(regex)(ZEND_MODULE_INFO_FUNC_ARGS_PASSTHRU);
PHP_MINFO(dl)(ZEND_MODULE_INFO_FUNC_ARGS_PASSTHRU);
PHP_MINFO(mail)(ZEND_MODULE_INFO_FUNC_ARGS_PASSTHRU);
+ php_info_print_table_end();
PHP_MINFO(assert)(ZEND_MODULE_INFO_FUNC_ARGS_PASSTHRU);
}
#include "php.h"
#include "dl.h"
#include "php_globals.h"
+#include "ext/standard/info.h"
#ifdef HAVE_LIBDL
#include <stdlib.h>
PHP_MINFO_FUNCTION(dl)
{
- PUTS("Dynamic Library support enabled<br>.\n");
+ php_info_print_table_row(2, "Dynamic Library Support", "enabled");
}
#else
#include <ctype.h>
#include <stdio.h>
#include "php.h"
+#include "ext/standard/info.h"
#if !defined(PHP_WIN32)
#include "build-defs.h"
#endif
PHP_MINFO_FUNCTION(mail)
{
#ifdef PHP_WIN32
- PUTS("Internal Sendmail support for Windows 4");
+ php_info_print_table_row(2, "Internal Sendmail Support for Windows 4", "enabled");
#else
- php_printf("Path to sendmail: <tt>%s</tt>", INI_STR("sendmail_path"));
+ php_info_print_table_row(2, "Path to sendmail", INI_STR("sendmail_path") );
#endif
}
#include "php.h"
#include "php_string.h"
#include "reg.h"
+#include "ext/standard/info.h"
#if 0
zend_module_entry regexp_module_entry = {
PHP_MINFO_FUNCTION(regex)
{
#if HSREGEX
- PUTS("Bundled regex library enabled<br>\n");
+ php_info_print_table_row(2, "Regex Library", "Bundled library enabled");
#else
- PUTS("System regex library enabled<br>\n");
+ php_info_print_table_row(2, "Regex Library", "System library enabled");
#endif
}
#include "php_xml.h"
#include "zend_variables.h"
#include "ext/standard/php_string.h"
-
+#include "ext/standard/info.h"
#if HAVE_LIBEXPAT
PHP_MINFO_FUNCTION(xml)
{
- PUTS("XML support active");
+
+ php_info_print_table_start();
+ php_info_print_table_row(2, "XML Support", "active");
+ php_info_print_table_end();
}
/* $Id$ */
#include "php.h"
+#include "ext/standard/info.h"
#if HAVE_YP
/* }}} */
PHP_MINFO_FUNCTION(yp) {
- PUTS("Compiled with YP Support.");
+ php_info_print_table_start();
+ php_info_print_table_row(2, "YP Support", "enabled");
+ php_info_print_table_end();
}
#endif /* HAVE_YP */
#include "ext/standard/head.h"
#include "safe_mode.h"
#include "ext/standard/php_standard.h"
+#include "ext/standard/info.h"
#include "php_zlib.h"
#include "fopen-wrappers.h"
#if HAVE_PWD_H
PHP_MINFO_FUNCTION(zlib)
{
- PUTS("Zlib support active (compiled with ");
- PUTS(ZLIB_VERSION);
- PUTS(", linked with ");
- PUTS((char *)zlibVersion());
- PUTS(").");
+ php_info_print_table_start();
+ php_info_print_table_row(2, "ZLib Support", "enabled");
+ php_info_print_table_row(2, "Compiled Version", ZLIB_VERSION );
+ php_info_print_table_row(2, "Linked Version", (char *)zlibVersion() );
+ php_info_print_table_end();
}
static gzFile *php_gzopen_with_path(char *filename, char *mode, char *path, char **opened_path);