Re: [PHP-DEV] PHP_AUTH_(USER|PW) not set

2002-10-20 Thread Martin Jansen
On Sat Oct 19, 2002 at 11:0608AM -0700, Rasmus Lerdorf wrote:
 You probably have an external auth module operating on the same request.

I don't think so. Could you perhaps be a bit more verbose what you
mean with external auth module?

-- 
- Martin   Martin Jansen
http://martinjansen.com/

-- 
PHP Development Mailing List http://www.php.net/
To unsubscribe, visit: http://www.php.net/unsub.php




Re: [PHP-DEV] PHP_AUTH_(USER|PW) not set

2002-10-20 Thread Rasmus Lerdorf
As in any Apache mod_auth module.

On Sun, 20 Oct 2002, Martin Jansen wrote:

 On Sat Oct 19, 2002 at 11:0608AM -0700, Rasmus Lerdorf wrote:
  You probably have an external auth module operating on the same request.

 I don't think so. Could you perhaps be a bit more verbose what you
 mean with external auth module?

 --
 - Martin   Martin Jansen
 http://martinjansen.com/



-- 
PHP Development Mailing List http://www.php.net/
To unsubscribe, visit: http://www.php.net/unsub.php




Re: [PHP-DEV] PHP_AUTH_(USER|PW) not set

2002-10-20 Thread Martin Jansen
Sigh, I'm stupid: It was a dumb problem on my side. Sorry for any
inconvenience.

On Sun Oct 20, 2002 at 08:3156AM -0700, Rasmus Lerdorf wrote:
 As in any Apache mod_auth module.
 
 On Sun, 20 Oct 2002, Martin Jansen wrote:
 
  On Sat Oct 19, 2002 at 11:0608AM -0700, Rasmus Lerdorf wrote:
   You probably have an external auth module operating on the same request.
 
  I don't think so. Could you perhaps be a bit more verbose what you
  mean with external auth module?

-- 
- Martin   Martin Jansen
http://martinjansen.com/

-- 
PHP Development Mailing List http://www.php.net/
To unsubscribe, visit: http://www.php.net/unsub.php




[PHP-DEV] PHP_AUTH_(USER|PW) not set

2002-10-19 Thread Martin Jansen
The following script fails with the todays snapshot and with PHP
4.3.0-pre1:

?php
if (!isset($PHP_AUTH_USER)) {
header(WWW-Authenticate: Basic realm=\Foobar\);
header(HTTP/1.0 401 Unauthorized);
echo Access denied.;
exit;
} else {
echo Hello;
}
?

I looks like $PHP_AUTH_(USER|PW) are not set
properly. Register_globals is set to on, but the same problem also
occurs when setting it to off and using $_SERVER['PHP_AUTH_USER']
then. (Apache 1.3.26, Linux)

Any clues?

-- 
- Martin   Martin Jansen
http://martinjansen.com/

-- 
PHP Development Mailing List http://www.php.net/
To unsubscribe, visit: http://www.php.net/unsub.php




Re: [PHP-DEV] PHP_AUTH_(USER|PW) not set

2002-10-19 Thread Rasmus Lerdorf
You probably have an external auth module operating on the same request.

On Sat, 19 Oct 2002, Martin Jansen wrote:

 The following script fails with the todays snapshot and with PHP
 4.3.0-pre1:

 ?php
 if (!isset($PHP_AUTH_USER)) {
 header(WWW-Authenticate: Basic realm=\Foobar\);
 header(HTTP/1.0 401 Unauthorized);
 echo Access denied.;
 exit;
 } else {
 echo Hello;
 }
 ?

 I looks like $PHP_AUTH_(USER|PW) are not set
 properly. Register_globals is set to on, but the same problem also
 occurs when setting it to off and using $_SERVER['PHP_AUTH_USER']
 then. (Apache 1.3.26, Linux)

 Any clues?

 --
 - Martin   Martin Jansen
 http://martinjansen.com/

 --
 PHP Development Mailing List http://www.php.net/
 To unsubscribe, visit: http://www.php.net/unsub.php



-- 
PHP Development Mailing List http://www.php.net/
To unsubscribe, visit: http://www.php.net/unsub.php