summaryrefslogtreecommitdiff
path: root/ext
diff options
context:
space:
mode:
authorDerick Rethans <derick@php.net>2003-04-09 15:19:07 +0000
committerDerick Rethans <derick@php.net>2003-04-09 15:19:07 +0000
commit429ae4e821b62ae8fe14afb5a5342a8b0190fec8 (patch)
treeb7e04cb120cc67958a3adcf22a42647806b9fbe4 /ext
parent45d27aab6843268100944c7735ef43945ae0b8e6 (diff)
downloadphp-git-429ae4e821b62ae8fe14afb5a5342a8b0190fec8.tar.gz
- Fixed printing the version string if it includes zend extensions in
text-mode
Diffstat (limited to 'ext')
-rw-r--r--ext/standard/info.c6
1 files changed, 5 insertions, 1 deletions
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?"<br />":"\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);
}