From: Derick Rethans Date: Wed, 9 Apr 2003 15:19:07 +0000 (+0000) Subject: - Fixed printing the version string if it includes zend extensions in X-Git-Tag: RELEASE_0_5~77 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=429ae4e821b62ae8fe14afb5a5342a8b0190fec8;p=php - Fixed printing the version string if it includes zend extensions in text-mode --- 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); }