#18782 [Bgs->Opn]: Phpinfo sets output colors incorrectly

From: Date: Thu, 08 Aug 2002 06:49:07 +0000
Subject: #18782 [Bgs->Opn]: Phpinfo sets output colors incorrectly
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-16239@lists.php.net to get a copy of this message
ID: 18782 User updated by: hramrach_l@centrum.cz Reported By: hramrach_l@centrum.cz -Status: Bogus +Status: Open Bug Type: PHP options/info functions Operating System: OSF1 V4.0 878 alpha PHP Version: 4.2.2 New Comment: That is PHP(or HTML) issue because you force background of the table to be different from my default. When you do so you should set text color to be visible on the background you forced me. Previous Comments: ------------------------------------------------------------------------ [2002-08-08 01:54:56] kalowsky@php.net If you change your browsers config from the default, then that really is your choice. I don't see how that is a PHP issue at all. ------------------------------------------------------------------------ [2002-08-07 09:58:38] hramrach_l@centrum.cz It fails on any platform with any browser from IE/Win IE/Mac Moz/Win Moz/Mac Moz/Linux(i386). It does not fail with Lynx because it has no colors at all ;-) I really set my default page colors. That's what's the pref for. You can expect I have set my colors to black on white. On the other hand I can expect everyone runs Lynx under hurd/gnumach on an Alpha. The fact the combination probably does not even compile yet is just a minor flaw in my assumptions. ------------------------------------------------------------------------ [2002-08-07 09:38:04] cynic@php.net i think he has set some strange default colors in his browser. common guys, the fix is trivial, doesn't hurt anything, so why such strong opposition? ------------------------------------------------------------------------ [2002-08-07 09:33:45] kalowsky@php.net If the colors aren't readable this is really a your video card and browser issue. This looks fine on every other platform. ------------------------------------------------------------------------ [2002-08-07 09:25:09] hramrach_l@centrum.cz They should not be ok. Default text color may be black, white, gray, violet, yellow, anything. When you set background, you should set text color to ensure it is visible on the background. Here is body tag from this page, which renders correctly. <body topmargin="0" leftmargin="0" marginheight="0" marginwidth="0" bgcolor="#ffffff" text="#000000" link="#000033" alink="#0099ff" vlink="#000033"> Here's a patch, hopefully correct --- php-4.2.2/ext/standard/info.c~ Thu Mar 14 19:39:37 2002 +++ php-4.2.2/ext/standard/info.c Wed Aug 7 15:19:06 2002 @@ -165,7 +165,8 @@ php_uname = php_get_uname(); PUTS("<head>"); php_info_print_style(); - PUTS("<title>phpinfo()</title></head><body>"); + PUTS("<title>phpinfo()</title></head>"); + PUTS("<body text=\"#000000\" bgcolor=\"#f0f0ff\" link=\"#0000ff\" vlink=\"#ff00ff\" alink=\"#0000ff\">"); php_info_print_box_start(1); if (expose_php) { ------------------------------------------------------------------------ The remainder of the comments for this report are too long. To view the rest of the comments, please view the bug report online at http://bugs.php.net/18782 -- Edit this bug report at http://bugs.php.net/?id=18782&edit=1

« previous php.bugs (#16239) next »