From:             
Operating system: windows xpsp2
PHP version:      5.2.13
Package:          PHP options/info functions
Bug Type:         Bug
Bug description:setting the php_auth_user using login form

Description:
------------
for auth-login, i don't like to have pop-up box to enter the
username/password. i like to enter the username/password in login-form.  

Test script:
---------------
<?

$username = "usa";

$password = "newyork";



if(($_POST['PHP_AUTH_USER'] == $username)&& ($_POST['PHP_AUTH_PW'] ==
$password))

  {     

        

     echo apache_setenv("PHP_AUTH_USER",$_POST['PHP_AUTH_USER']);

     echo apache_setenv("PHP_AUTH_PW",$_POST['PHP_AUTH_PW']);   

        echo putenv("PHP_AUTH_USER =$_POST['PHP_AUTH_USER']");

        echo putenv("PHP_AUTH_PW = $_POST['PHP_AUTH_PW']");

        

  }  

?>



<form method="post">

<p>Username : <input type="textbox" name="PHP_AUTH_USER" id="PHP_AUTH_USER"
/><br />

<p>Password : <input type="password" name="PHP_AUTH_PW" id="PHP_AUTH_PW"
/><br />

<p>     <input type="submit" name="submit" />

</form>

Expected result:
----------------
by using the phpinfo(), we need to see the _SERVER['PHP_AUTH_USER'] = usa. 

Actual result:
--------------
by using the phpinfo(), '_SERVER['PHP_AUTH_USER'] ' is totally missed..  

-- 
Edit bug report at http://bugs.php.net/bug.php?id=51548&edit=1
-- 
Try a snapshot (PHP 5.2):            
http://bugs.php.net/fix.php?id=51548&r=trysnapshot52
Try a snapshot (PHP 5.3):            
http://bugs.php.net/fix.php?id=51548&r=trysnapshot53
Try a snapshot (PHP 6.0):            
http://bugs.php.net/fix.php?id=51548&r=trysnapshot60
Fixed in SVN:                        
http://bugs.php.net/fix.php?id=51548&r=fixed
Fixed in SVN and need be documented: 
http://bugs.php.net/fix.php?id=51548&r=needdocs
Fixed in release:                    
http://bugs.php.net/fix.php?id=51548&r=alreadyfixed
Need backtrace:                      
http://bugs.php.net/fix.php?id=51548&r=needtrace
Need Reproduce Script:               
http://bugs.php.net/fix.php?id=51548&r=needscript
Try newer version:                   
http://bugs.php.net/fix.php?id=51548&r=oldversion
Not developer issue:                 
http://bugs.php.net/fix.php?id=51548&r=support
Expected behavior:                   
http://bugs.php.net/fix.php?id=51548&r=notwrong
Not enough info:                     
http://bugs.php.net/fix.php?id=51548&r=notenoughinfo
Submitted twice:                     
http://bugs.php.net/fix.php?id=51548&r=submittedtwice
register_globals:                    
http://bugs.php.net/fix.php?id=51548&r=globals
PHP 4 support discontinued:          http://bugs.php.net/fix.php?id=51548&r=php4
Daylight Savings:                    http://bugs.php.net/fix.php?id=51548&r=dst
IIS Stability:                       
http://bugs.php.net/fix.php?id=51548&r=isapi
Install GNU Sed:                     
http://bugs.php.net/fix.php?id=51548&r=gnused
Floating point limitations:          
http://bugs.php.net/fix.php?id=51548&r=float
No Zend Extensions:                  
http://bugs.php.net/fix.php?id=51548&r=nozend
MySQL Configuration Error:           
http://bugs.php.net/fix.php?id=51548&r=mysqlcfg

Reply via email to