]> granicus.if.org Git - php/commitdiff
Minor output mods
authorZeev Suraski <zeev@php.net>
Fri, 19 May 2000 08:28:53 +0000 (08:28 +0000)
committerZeev Suraski <zeev@php.net>
Fri, 19 May 2000 08:28:53 +0000 (08:28 +0000)
ext/standard/info.c
main/php.h

index ffcc6a1a679b62604f9447523ab7167488e78991..29014cc80bfffbd6304eb193a22b60765cd56b29 100644 (file)
@@ -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\"></a>\n");
                }
-               php_printf("This program makes use of the Zend scripting language engine:<pre>%s</pre>\n", get_zend_version());
+               php_printf("This program makes use of the Zend scripting language engine:<BR>");
+               zend_html_puts(zend_version, strlen(zend_version));
+               php_printf("</BR>\n");
                php_info_print_box_end();
        }
 
index 7b958747f2357ca62cead516767e938c5b84e6f0..cdbbaabeb20a9579674ccd55794c8109b4dd61b2 100644 (file)
@@ -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