ID: 10079
User Update by: [EMAIL PROTECTED]
Status: Open
Bug Type: Scripting Engine problem
Description: Header Function Within IF construct

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?


Previous Comments:

[2001-04-03 18:30:34] [EMAIL PROTECTED]
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.



[2001-04-03 10:30:02] [EMAIL PROTECTED]
Try this script:


if(!isset($PHP_AUTH_USER)) {
    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.


p.s. Are you sure that you have this in your httpd.conf:

ServerType standalone 


[2001-04-03 09:31:00] [EMAIL PROTECTED]
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.



[2001-03-30 16:56:37] [EMAIL PROTECTED]
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 



[2001-03-30 15:45:58] [EMAIL PROTECTED]


The remainder of the comments for this report are too long.  To view the rest of the 
comments, please view the bug report online.

Full Bug description available at:

PHP Development Mailing List <>
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]

Reply via email to