I just checked with current cvs and this simple test script:

<?php
  if (!isset($PHP_AUTH_USER)) {
    header('WWW-Authenticate: Basic realm="The Realm"');
    header('HTTP/1.0 401 Unauthorized');
    echo 'Text to send if user hits Cancel button';
    exit;
  } else {
    echo "<p>Hello $PHP_AUTH_USER.</p>";
    echo "<p>You entered $PHP_AUTH_PW as your password.</p>";
  }
?>
This is A TEST

The output after entering the auth data was:

  Hello Rasmus.

  You entered foo as your password.
  This is A TEST

So, it works just fine.

You aren't by any chance using Apache2?

-Rasmus

On Wed, 2 Oct 2002, David Reid wrote:

> This also seems to be a problem for SquirrelMail (2.0.8) which just hangs
> after the "upgrade". It was working OK before I changed to CVS.
>
> david
>
> ----- Original Message -----
> From: "Rasmus Lerdorf" <[EMAIL PROTECTED]>
> To: "David Reid" <[EMAIL PROTECTED]>
> Cc: <[EMAIL PROTECTED]>
> Sent: Wednesday, October 02, 2002 1:29 AM
> Subject: Re: [PHP-DEV] PHP_AUTH_USER in 4.3
>
>
> > It shouldn't have stopped working.  Did you change your register_globals
> > setting or something?
> >
> > On Wed, 2 Oct 2002, David Reid wrote:
> >
> > > Is support for this being dropped or is it just not added yet? Just
> changed
> > > from 4.2.3 and was surprised to see that it stopped working...
> > >
> > > david
> > >
> > >
> > > --
> > > 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
>


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

Reply via email to