PHP 4.0 Bug #10079 Updated: Header Function Within IF construct

From: Date: Thu, 05 Apr 2001 19:10:32 +0000
Subject: PHP 4.0 Bug #10079 Updated: Header Function Within IF construct
Groups: php.dev 
Request: Send a blank email to php-dev+get-50966@lists.php.net to get a copy of this message
ID: 10079 Updated by: sniper Reported By: dgrimes@scvl.com Old-Status: Open Status: Closed Old-Bug Type: Scripting Engine problem Bug Type: *General Issues Assigned To: Comments: As this is a browser problem with only one browser and one version of it -> closed. It's a bug in IE 5.01 SP2 so report it to Microsoft. IIRC they only support > 5.5 now so good luck. --Jani Previous Comments: --------------------------------------------------------------------------- [2001-04-05 11:55:56] dgrimes@scvl.com I did some more testing and have found that it is indeed browser related. MSIE 5.01 SP2 have the problem and 5.00 and 5.5 do not. Have you tested with this browser? Also, why would PHP behave as it does? Is it a timing issue? Dean --------------------------------------------------------------------------- [2001-04-03 18:30:34] dgrimes@scvl.com Yes, I double checked it and ServerType standalone is in my httpd.conf file. If there is anything I can do to help you debug the problem, just let me know. If you want you can dial in and see for your self. This is not a production server that I am testing on, so we can do whatever to track this down. The problem I'm having, is that I want to do some authentication but code that should not execute is getting executed. Dean --------------------------------------------------------------------------- [2001-04-03 10:30:02] sniper@php.net Try this script: <?php if(!isset($PHP_AUTH_USER)) { exec(">xxxx"); header('WWW-Authenticate: Basic Realm="A Test R"'); header("HTTP/1.0 401 Unauthorized"); echo "boo"; } else { echo "else"; } ?> I can't reproduce the problem you have. --Jani p.s. Are you sure that you have this in your httpd.conf: ServerType standalone --------------------------------------------------------------------------- [2001-04-03 09:31:00] dgrimes@scvl.com I was able to get PHP-4.0.5 installed and I still have the same problem. Is there anything else you would like me to try? Is this a bug or expected behaviour? Thanks for help. Dean --------------------------------------------------------------------------- [2001-03-30 16:56:37] dgrimes@scvl.com I guess I'm doing this right... I downloaded php4-200103301245.tar.gz. Unzipped, untarred and configured using --with-mysql --with-apache --with-trans-sid --enable-track-vars --enable-sysvsem --enable-sysvshm All configured fine. But make is not making.... I'm getting symbol referencing errors. It is quite possible that this version is not quite ready for SCO OpenServer. If you want, I'll send you the debug.log file from the make operation. I'm not sure if you even mess with installation problems of PHP in this forum. I have a question: Is the annomally I reported a bug in 4.0.4pl1 or is it just my system? Dean --------------------------------------------------------------------------- The remainder of the comments for this report are too long. To view the rest of the comments, please view the bug report online. ATTENTION! Do NOT reply to this email! To reply, use the web interface found at http://bugs.php.net/?id=10079&edit=2

« previous php.dev (#50966) next »