]> granicus.if.org Git - php/commitdiff
- Fixed printing the version string if it includes zend extensions in
authorDerick Rethans <derick@php.net>
Wed, 9 Apr 2003 15:19:07 +0000 (15:19 +0000)
committerDerick Rethans <derick@php.net>
Wed, 9 Apr 2003 15:19:07 +0000 (15:19 +0000)
  text-mode

ext/standard/info.c

index 102df2c918b54cc24c7ccc1b1bdc4ab4e610073c..d7613ce4c0113883e4deefe6ae12ce8f38bd0462 100644 (file)
@@ -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);
        }