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

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

Previous Comments:
---------------------------------------------------------------------------

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


Dean

---------------------------------------------------------------------------

[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 
system?

Dean

---------------------------------------------------------------------------

[2001-03-30 15:45:58] [EMAIL PROTECTED]
http://snaps.php.net/



---------------------------------------------------------------------------

[2001-03-30 15:21:34] [EMAIL PROTECTED]
Apache is running standalone as a daemon.
.....
No, I havn't tried 4.0.5. I'll give it try ... Just tell where to download it.

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.

Full Bug description available at: http://bugs.php.net/?id=10079


-- 
PHP Development Mailing List <http://www.php.net/>
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