From 429ae4e821b62ae8fe14afb5a5342a8b0190fec8 Mon Sep 17 00:00:00 2001 From: Derick Rethans Date: Wed, 9 Apr 2003 15:19:07 +0000 Subject: [PATCH] - Fixed printing the version string if it includes zend extensions in text-mode --- ext/standard/info.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/ext/standard/info.c b/ext/standard/info.c index 102df2c918..d7613ce4c0 100644 --- a/ext/standard/info.c +++ b/ext/standard/info.c @@ -507,7 +507,11 @@ PHPAPI void php_print_info(int flag TSRMLS_DC) } PUTS("This program makes use of the Zend Scripting Language Engine:"); PUTS(!sapi_module.phpinfo_as_text?"
":"\n"); - zend_html_puts(zend_version, strlen(zend_version) TSRMLS_CC); + if (sapi_module.phpinfo_as_text) { + PUTS(zend_version); + } else { + zend_html_puts(zend_version, strlen(zend_version) TSRMLS_CC); + } php_info_print_box_end(); efree(php_uname); } -- 2.50.1