summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSander Roobol <sander@php.net>2002-05-24 17:25:40 +0000
committerSander Roobol <sander@php.net>2002-05-24 17:25:40 +0000
commitb80c27f7ae3ddcc7949088cc6f20e9b283f3fe54 (patch)
tree3ac4c0487d07286f03e52a095ef49d466381de0f
parenta014080299561428001795e8cc10ad1986818557 (diff)
downloadphp-git-b80c27f7ae3ddcc7949088cc6f20e9b283f3fe54.tar.gz
Fix <head> and <body> tags in phpinfo() output (#17411)
-rw-r--r--ext/standard/info.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/ext/standard/info.c b/ext/standard/info.c
index df58879573..5cea723348 100644
--- a/ext/standard/info.c
+++ b/ext/standard/info.c
@@ -220,14 +220,14 @@ PHPAPI void php_print_info(int flag TSRMLS_DC)
snprintf (ext_api_no, 9, "%d", ZEND_EXTENSION_API_NO);
PUTS("<!DOCTYPE HTML PUBLIC \"-//W3C//DTD HTML 4.01 Transitional//EN\">\n<html>\n");
+ PUTS("<head>");
+ php_info_print_style();
+ PUTS("<title>phpinfo()</title></head><body>");
if (flag & PHP_INFO_GENERAL) {
char *zend_version = get_zend_version();
php_uname = php_get_uname('a');
- PUTS("<head>");
- php_info_print_style();
- PUTS("<title>phpinfo()</title></head><body>");
php_info_print_box_start(1);
if (expose_php) {