cvs: php4 /ext/standard info.c
| From: | Derick Rethans | Date: | Wed, 09 Apr 2003 15:19:07 +0000 |
| Subject: | cvs: php4 /ext/standard info.c | ||
| Groups: | php.cvs | ||
| Request: | Send a blank email to php-cvs+get-20194@lists.php.net to get a copy of this message | ||
derick Wed Apr 9 11:19:07 2003 EDT
Modified files:
/php4/ext/standard info.c
Log:
- Fixed printing the version string if it includes zend extensions in
text-mode
Index: php4/ext/standard/info.c
diff -u php4/ext/standard/info.c:1.232 php4/ext/standard/info.c:1.233
--- php4/ext/standard/info.c:1.232 Wed Apr 2 11:51:40 2003
+++ php4/ext/standard/info.c Wed Apr 9 11:19:07 2003
@@ -18,7 +18,7 @@
+----------------------------------------------------------------------+
*/
-/* $Id: info.c,v 1.232 2003/04/02 16:51:40 cmv Exp $ */
+/* $Id: info.c,v 1.233 2003/04/09 15:19:07 derick Exp $ */
#include "php.h"
#include "php_ini.h"
@@ -507,7 +507,11 @@
}
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);
}