From: Zeev Suraski Date: Fri, 19 May 2000 08:28:53 +0000 (+0000) Subject: Minor output mods X-Git-Tag: php-4.0.0~29 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=0f82e6de23cbe96e837167f5ae1ef8e8460264c4;p=php Minor output mods --- diff --git a/ext/standard/info.c b/ext/standard/info.c index ffcc6a1a67..29014cc80b 100644 --- a/ext/standard/info.c +++ b/ext/standard/info.c @@ -28,6 +28,7 @@ #include "build-defs.h" #endif #include "zend_globals.h" /* needs ELS */ +#include "zend_highlight.h" #define PHP_CONF_LONG(directive,value1,value2) \ @@ -139,6 +140,8 @@ PHPAPI void php_print_info(int flag) ta = php_localtime_r(&the_time, &tmbuf); if (flag & PHP_INFO_GENERAL) { + char *zend_version = get_zend_version(); + #ifdef PHP_WIN32 // Get build numbers for Windows NT or Win95 if (dwVersion < 0x80000000){ @@ -208,7 +211,9 @@ PHPAPI void php_print_info(int flag) } PUTS("?=PHPE9568F35-D428-11d2-A769-00AA001ACF42\" border=\"0\" align=\"right\">\n"); } - php_printf("This program makes use of the Zend scripting language engine:
%s
\n", get_zend_version()); + php_printf("This program makes use of the Zend scripting language engine:
"); + zend_html_puts(zend_version, strlen(zend_version)); + php_printf("
\n"); php_info_print_box_end(); } diff --git a/main/php.h b/main/php.h index 7b958747f2..cdbbaabeb2 100644 --- a/main/php.h +++ b/main/php.h @@ -256,8 +256,6 @@ extern PHPAPI void php_error_cb(int type, const char *format, ...); #endif -extern void html_putc(char c); - #define zenderror phperror #define zendlex phplex