cvs: php4 /ext/standard info.c
| From: | Sander Roobol | Date: | Fri, 24 May 2002 17:25:40 +0000 |
| Subject: | cvs: php4 /ext/standard info.c | ||
| Groups: | php.cvs | ||
| Request: | Send a blank email to php-cvs+get-12070@lists.php.net to get a copy of this message | ||
sander Fri May 24 13:25:40 2002 EDT
Modified files:
/php4/ext/standard info.c
Log:
Fix <head> and <body> tags in phpinfo() output (#17411)
Index: php4/ext/standard/info.c
diff -u php4/ext/standard/info.c:1.180 php4/ext/standard/info.c:1.181
--- php4/ext/standard/info.c:1.180 Mon May 13 13:43:04 2002
+++ php4/ext/standard/info.c Fri May 24 13:25:40 2002
@@ -17,7 +17,7 @@
+----------------------------------------------------------------------+
*/
-/* $Id: info.c,v 1.180 2002/05/13 17:43:04 zeev Exp $ */
+/* $Id: info.c,v 1.181 2002/05/24 17:25:40 sander Exp $ */
#include "php.h"
#include "php_ini.h"
@@ -220,14 +220,14 @@
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) {